summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/histlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/histlib.h')
-rw-r--r--contrib/libreadline/histlib.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/libreadline/histlib.h b/contrib/libreadline/histlib.h
index bc948b0..c39af71 100644
--- a/contrib/libreadline/histlib.h
+++ b/contrib/libreadline/histlib.h
@@ -22,6 +22,12 @@
#if !defined (_HISTLIB_H_)
#define _HISTLIB_H_
+#if defined (HAVE_STRING_H)
+# include <string.h>
+#else
+# include <strings.h>
+#endif /* !HAVE_STRING_H */
+
#if !defined (STREQ)
#define STREQ(a, b) (((a)[0] == (b)[0]) && (strcmp ((a), (b)) == 0))
#define STREQN(a, b, n) (((n) == 0) ? (1) \
@@ -29,9 +35,6 @@
#endif
#ifndef savestring
-# ifndef strcpy
-extern char *strcpy ();
-# endif
#define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
#endif
OpenPOWER on IntegriCloud