summaryrefslogtreecommitdiff
path: root/readline/examples/rl.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-04-24 22:00:27 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-04-24 22:00:27 +0000
commitedc469a5506b2f0858aa4366d84f5c04e4eeeebe (patch)
treecf5d1c0b957710b8b9976bff1e8484b7c4a839b4 /readline/examples/rl.c
parent7be84cf3293f63b314237035e7df76caa8022769 (diff)
downloadgdb-cvs/readline_5_1-import-branch.tar.gz
Diffstat (limited to 'readline/examples/rl.c')
-rw-r--r--readline/examples/rl.c9
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