summaryrefslogtreecommitdiffstats
path: root/readline/examples/rlversion.c
diff options
context:
space:
mode:
Diffstat (limited to 'readline/examples/rlversion.c')
-rw-r--r--readline/examples/rlversion.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/readline/examples/rlversion.c b/readline/examples/rlversion.c
index 53949d1e3b..6c8687488e 100644
--- a/readline/examples/rlversion.c
+++ b/readline/examples/rlversion.c
@@ -30,6 +30,12 @@
#include <sys/types.h>
#include "posixstat.h"
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#else
+extern void exit();
+#endif
+
#ifdef READLINE_LIBRARY
# include "readline.h"
#else
OpenPOWER on IntegriCloud