diff options
author | Jari Aalto <jari.aalto@cante.net> | 2005-12-07 14:08:12 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:57 +0000 |
commit | 95732b497d12c98613bb3c5db16b61f377501a59 (patch) | |
tree | 5e1cdf79eb0407e09dca4c0ec29e11442c7d1d15 /lib/readline/examples/rl.c | |
parent | eb87367179effbe5f430236db8259006d71438b7 (diff) | |
download | bash-95732b497d12c98613bb3c5db16b61f377501a59.tar.gz |
Imported from ../bash-3.1.tar.gz.
Diffstat (limited to 'lib/readline/examples/rl.c')
-rw-r--r-- | lib/readline/examples/rl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/readline/examples/rl.c b/lib/readline/examples/rl.c index d2604895..c608c15f 100644 --- a/lib/readline/examples/rl.c +++ b/lib/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 |