summaryrefslogtreecommitdiff
path: root/gnu/lib/libreadline/histlib.h
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2003-05-10 21:40:01 +0000
committerBob Beck <beck@cvs.openbsd.org>2003-05-10 21:40:01 +0000
commite5ec5dcb85d7417669bf035105a45f538f146525 (patch)
treeaf34ea162aad1e34381c11da590e8a12b6d75a9c /gnu/lib/libreadline/histlib.h
parent6f41679e5b646ab8a07115715935afb174abffae (diff)
Back out libreadline changes, this breaks static build (I.E. vax).
changes are nontrivial to fix. Will return when static build works.
Diffstat (limited to 'gnu/lib/libreadline/histlib.h')
-rw-r--r--gnu/lib/libreadline/histlib.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/lib/libreadline/histlib.h b/gnu/lib/libreadline/histlib.h
index e509381791f..88a34d10f1d 100644
--- a/gnu/lib/libreadline/histlib.h
+++ b/gnu/lib/libreadline/histlib.h
@@ -37,10 +37,12 @@ typedef char **CPPFunction ();
: ((a)[0] == (b)[0]) && (strncmp ((a), (b), (n)) == 0))
#endif
-#if !defined (savestring)
-extern char *xstrdup (char *);
-#define savestring(x) xstrdup(x)
-#endif /* !savestring */
+#ifndef savestring
+# ifndef strcpy
+extern char *strcpy ();
+# endif
+#define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
+#endif
#ifndef whitespace
#define whitespace(c) (((c) == ' ') || ((c) == '\t'))