=================================================================== RCS file: /home/cvs/OpenXM_contrib2/fep/fep_edit.c,v retrieving revision 1.3 retrieving revision 1.6 diff -u -p -r1.3 -r1.6 --- OpenXM_contrib2/fep/fep_edit.c 2005/01/18 14:20:19 1.3 +++ OpenXM_contrib2/fep/fep_edit.c 2012/05/14 12:52:08 1.6 @@ -2,10 +2,12 @@ #ifndef lint static char rcsid[]= -"$Id: fep_edit.c,v 1.3 2005/01/18 14:20:19 ohara Exp $ (SRA)"; +"$Id: fep_edit.c,v 1.6 2012/05/14 12:52:08 ohara Exp $ (SRA)"; #endif /* lint */ #include +#include +#include #include #include #include @@ -24,7 +26,7 @@ static char rcsid[]= #if defined(__CYGWIN__) #include #define direct dirent -#elif defined(sun) +#elif defined(sun) || defined(__FreeBSD__) #include #define direct dirent #include @@ -162,7 +164,8 @@ init_edit_params () set_var ("editmode", "emacs"); } - set_var ("showhist", itoa (lines - 1)); + sprintf (sbuf, "%d", lines); + set_var ("showhist", sbuf); /* * Read startup file @@ -285,7 +288,7 @@ initEmacsBindings (cft, aft) * Main function of front end program */ CHAR * -getline() +mygetline() { int c; CHAR *execute_command, *check_alias();