From bbb22065d009636c3aedec6132642d51a66e0e5b Mon Sep 17 00:00:00 2001 From: timeless Date: Mon, 8 Sep 2008 13:27:57 +0200 Subject: [PATCH] Bug 330237 - editline.c:1038: warning: implicit declaration of function getpid. r=mrbkap --- js/src/editline/editline.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/src/editline/editline.c b/js/src/editline/editline.c index 0f0210b39a1a..8ca93b33e628 100644 --- a/js/src/editline/editline.c +++ b/js/src/editline/editline.c @@ -64,6 +64,7 @@ #include "editline.h" #include #include +#include /* ** Manifest constants. @@ -154,12 +155,10 @@ int rl_meta_chars = 0; ** Declarations. */ STATIC CHAR *editinput(); -extern int read(); -extern int write(); #if defined(USE_TERMCAP) -extern char *getenv(); -extern char *tgetstr(); -extern int tgetent(); +#include +#include +#include #endif /* defined(USE_TERMCAP) */ /*