diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/nodes.c.pat | 12 |
2 files changed, 2 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog index df38cf6..9edac6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,7 @@ * Added dummy strtod implementation. * Removed standalone/csh support from test. * Added dummy sysconf implementation. + * Include system.h for stpcpy in nodes.c. 2005-10-26 Herbert Xu <herbert@gondor.apana.org.au> diff --git a/src/nodes.c.pat b/src/nodes.c.pat index c5d3562..9125bc7 100644 --- a/src/nodes.c.pat +++ b/src/nodes.c.pat @@ -44,6 +44,7 @@ #include "memalloc.h" #include "machdep.h" #include "mystring.h" +#include "system.h" int funcblocksize; /* size of structures in function */ @@ -145,21 +146,10 @@ STATIC char * nodesavestr(s) char *s; { -#ifdef _GNU_SOURCE char *rtn = funcstring; funcstring = stpcpy(funcstring, s) + 1; return rtn; -#else - register char *p = s; - register char *q = funcstring; - char *rtn = funcstring; - - while ((*q++ = *p++) != '\0') - continue; - funcstring = q; - return rtn; -#endif } |