summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/histlib.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-08-31 17:55:46 +0000
committerache <ache@FreeBSD.org>2003-08-31 17:55:46 +0000
commitab304301db89e3906744fb6a81655b9598764582 (patch)
treef75abef44b0f70973592b7edb66a319f92a1d7b2 /contrib/libreadline/histlib.h
parente5103242d94d5211fa44bad651caaa7a61519867 (diff)
downloadFreeBSD-src-ab304301db89e3906744fb6a81655b9598764582.zip
FreeBSD-src-ab304301db89e3906744fb6a81655b9598764582.tar.gz
Virgin import of GNU Readline 4.3
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