aboutsummaryrefslogtreecommitdiff
path: root/readline/examples/rltest.c
diff options
context:
space:
mode:
Diffstat (limited to 'readline/examples/rltest.c')
-rw-r--r--readline/examples/rltest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/readline/examples/rltest.c b/readline/examples/rltest.c
index 99f083b..cb67bab 100644
--- a/readline/examples/rltest.c
+++ b/readline/examples/rltest.c
@@ -31,6 +31,12 @@
#include <stdio.h>
#include <sys/types.h>
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#else
+extern void exit();
+#endif
+
#ifdef READLINE_LIBRARY
# include "readline.h"
# include "history.h"