summaryrefslogtreecommitdiff
path: root/examples/rlcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rlcat.c')
-rw-r--r--examples/rlcat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/rlcat.c b/examples/rlcat.c
index 176b9f4..33aea4a 100644
--- a/examples/rlcat.c
+++ b/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