diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2003-05-10 21:40:01 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2003-05-10 21:40:01 +0000 |
commit | e5ec5dcb85d7417669bf035105a45f538f146525 (patch) | |
tree | af34ea162aad1e34381c11da590e8a12b6d75a9c /gnu/lib/libreadline/rldefs.h | |
parent | 6f41679e5b646ab8a07115715935afb174abffae (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/rldefs.h')
-rw-r--r-- | gnu/lib/libreadline/rldefs.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/lib/libreadline/rldefs.h b/gnu/lib/libreadline/rldefs.h index 35bdafccc23..e504d9b1c30 100644 --- a/gnu/lib/libreadline/rldefs.h +++ b/gnu/lib/libreadline/rldefs.h @@ -93,11 +93,10 @@ extern int _rl_stricmp (), _rl_strnicmp (); # define KEYMAP_TO_FUNCTION(data) (Function *)(data) #endif +#ifndef savestring extern char *xmalloc (); -#if !defined (savestring) -extern char *xstrdup (char *); -#define savestring(x) xstrdup(x) -#endif /* !savestring */ +#define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) +#endif /* Possible values for _rl_bell_preference. */ #define NO_BELL 0 |