aboutsummaryrefslogtreecommitdiff
path: root/readline/examples/rlcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'readline/examples/rlcat.c')
-rw-r--r--readline/examples/rlcat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/readline/examples/rlcat.c b/readline/examples/rlcat.c
index 176b9f4..33aea4a 100644
--- a/readline/examples/rlcat.c
+++ b/readline/examples/rlcat.c
@@ -40,6 +40,12 @@
#include <string.h>
#include <errno.h>
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#else
+extern void exit();
+#endif
+
#ifndef errno
extern int errno;
#endif