summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/examples/rl.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/examples/rl.c')
-rw-r--r--contrib/libreadline/examples/rl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/libreadline/examples/rl.c b/contrib/libreadline/examples/rl.c
index 6c2f343..ccddd0f 100644
--- a/contrib/libreadline/examples/rl.c
+++ b/contrib/libreadline/examples/rl.c
@@ -12,7 +12,7 @@
#define READLINE_LIBRARY
#if defined (HAVE_CONFIG_H)
-#include <config.h>
+# include <config.h>
#endif
#include <stdio.h>
@@ -24,7 +24,9 @@
extern int optind;
extern char *optarg;
+#if !defined (strchr) && !defined (__STDC__)
extern char *strrchr();
+#endif
static char *progname;
static char *deftext;
OpenPOWER on IntegriCloud