diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-04-24 22:00:27 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-04-24 22:00:27 +0000 |
commit | edc469a5506b2f0858aa4366d84f5c04e4eeeebe (patch) | |
tree | cf5d1c0b957710b8b9976bff1e8484b7c4a839b4 /readline/examples/rl.c | |
parent | 7be84cf3293f63b314237035e7df76caa8022769 (diff) | |
download | gdb-cvs/readline_5_1-import-branch.tar.gz |
Import readline 5.1 on the branch.readline_5_1-import-branchcvs/readline_5_1-import-branch
Diffstat (limited to 'readline/examples/rl.c')
-rw-r--r-- | readline/examples/rl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/readline/examples/rl.c b/readline/examples/rl.c index d2604895e52..c608c15f3d6 100644 --- a/readline/examples/rl.c +++ b/readline/examples/rl.c @@ -31,12 +31,19 @@ #include <stdio.h> #include <sys/types.h> -#include "posixstat.h" + +#ifdef HAVE_STDLIB_H +# include <stdlib.h> +#else +extern void exit(); +#endif #if defined (READLINE_LIBRARY) +# include "posixstat.h" # include "readline.h" # include "history.h" #else +# include <sys/stat.h> # include <readline/readline.h> # include <readline/history.h> #endif |