diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-10-29 16:29:22 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2005-10-29 16:29:22 +1000 |
commit | 8b384a7013a6755c5a83ab71ee9065e3e48f8783 (patch) | |
tree | acd4a38c9710da54f0c72b425e44c5da749bd46f /src/expand.c | |
parent | Fixed gcc 4.0 compilation problems (diff) | |
download | dash-8b384a7013a6755c5a83ab71ee9065e3e48f8783.tar.gz dash-8b384a7013a6755c5a83ab71ee9065e3e48f8783.zip |
Added missing system.h inclusion for mempcpy
All users of mempcpy must include system.h.
Diffstat (limited to '')
-rw-r--r-- | src/expand.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/expand.c b/src/expand.c index c3f1eef..dafb51f 100644 --- a/src/expand.c +++ b/src/expand.c @@ -75,6 +75,7 @@ #include "error.h" #include "mystring.h" #include "show.h" +#include "system.h" /* * _rmescape() flags @@ -1650,12 +1651,7 @@ _rmescapes(char *str, int flag) } q = r; if (len > 0) { -#ifdef _GNU_SOURCE q = mempcpy(q, str, len); -#else - memcpy(q, str, len); - q += len; -#endif } } inquotes = (flag & RMESCAPE_QUOTED) ^ RMESCAPE_QUOTED; |