From e5ec5dcb85d7417669bf035105a45f538f146525 Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Sat, 10 May 2003 21:40:01 +0000 Subject: Back out libreadline changes, this breaks static build (I.E. vax). changes are nontrivial to fix. Will return when static build works. --- gnu/lib/libreadline/histlib.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gnu/lib/libreadline/histlib.h') 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')) -- cgit v1.2.3