summaryrefslogtreecommitdiff
path: root/contrib/libreadline/examples/rltest.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/examples/rltest.c')
-rw-r--r--contrib/libreadline/examples/rltest.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/libreadline/examples/rltest.c b/contrib/libreadline/examples/rltest.c
index 311629f30ac0..ff3ad5cc9ee9 100644
--- a/contrib/libreadline/examples/rltest.c
+++ b/contrib/libreadline/examples/rltest.c
@@ -4,10 +4,20 @@
/* */
/* **************************************************************** */
+/*
+ * Remove the next line if you're compiling this against an installed
+ * libreadline.a
+ */
+#define READLINE_LIBRARY
+
+#if defined (HAVE_CONFIG_H)
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <sys/types.h>
-#include "../readline.h"
-#include "../history.h"
+#include "readline.h"
+#include "history.h"
main ()
{