=================================================================== RCS file: /home/cvs/OpenXM_contrib2/fep/fep_main.c,v retrieving revision 1.6 retrieving revision 1.9 diff -u -p -r1.6 -r1.9 --- OpenXM_contrib2/fep/fep_main.c 2009/02/24 07:30:15 1.6 +++ OpenXM_contrib2/fep/fep_main.c 2012/05/14 12:52:08 1.9 @@ -2,10 +2,12 @@ #ifndef lint static char rcsid[]= -"$Id: fep_main.c,v 1.6 2009/02/24 07:30:15 noro Exp $ (SRA)"; +"$Id: fep_main.c,v 1.9 2012/05/14 12:52:08 ohara Exp $ (SRA)"; #endif /* lint */ #include +#include +#include #include #include #include @@ -339,7 +341,7 @@ recover_signal () input_handler() { char *inputline; - char *getline (); + char *mygetline (); /* * Get slave tty descriptor for auto-tty-fix @@ -347,7 +349,7 @@ input_handler() if ((slave = open (slave_tty, O_RDONLY)) < 0) perror ("open"); - while (inputline = getline ()) { + while (inputline = mygetline ()) { /* * XXX: nbyte should be greater than 0 only for ^@ input in emacs. * This solution is very ugly.. but it will takes a half day @@ -363,7 +365,7 @@ input_handler() /* * NOTE: - * Saving command line to output buffer is done in getline(). + * Saving command line to output buffer is done in mygetline(). * Because inputline here is converted by alias. */ @@ -545,7 +547,7 @@ int set_buffer (bp, size) BUFFER *bp; int size; { - char *newbuf, *malloc(), *realloc(); + char *newbuf; if (bp->b_buf) newbuf = (char *) realloc (bp->b_buf, size); @@ -1073,6 +1075,7 @@ usageAndExit() */ void sigwinch(int dummy) { + char *itoa(int i); #ifdef TIOCGWINSZ /* 4.3BSD */ struct winsize win;