summaryrefslogtreecommitdiff
path: root/callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'callback.c')
-rw-r--r--callback.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/callback.c b/callback.c
index 9ddf9f1..a8f4323 100644
--- a/callback.c
+++ b/callback.c
@@ -30,6 +30,13 @@
#if defined (READLINE_CALLBACKS)
#include <sys/types.h>
+
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#else
+# include "ansi_stdlib.h"
+#endif
+
#include <stdio.h>
/* System-specific feature definitions and include files. */