diff options
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 d260489..c608c15 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 |