From 5dd1a08bdc21aa9477a5d91fe309e8c2639bfc46 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 29 Oct 2005 21:47:28 +1000 Subject: [SYSTEM] Include system.h for stpcpy in nodes.c Since we have a fallback implementation for stpcpy we can now use it unconditionally in nodes.c.pat. This also fixes a link error with klibc. --- src/nodes.c.pat | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/nodes.c.pat') 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 } -- cgit 1.4.1