summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/expand.c6
-rw-r--r--src/memalloc.c1
-rw-r--r--src/output.c1
4 files changed, 4 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d2c17e..1f90a2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
 	* Added default implementation of bsearch.
 	* Added getpwhome as a wrapper for getpwnam.
 	* Fixed gcc 4.0 compilation problems.
+	* Added missing system.h inclusion for mempcpy.
 
 2005-10-26  Herbert Xu <herbert@gondor.apana.org.au>
 
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;
diff --git a/src/memalloc.c b/src/memalloc.c
index e53da2f..358e6ec 100644
--- a/src/memalloc.c
+++ b/src/memalloc.c
@@ -41,6 +41,7 @@
 #include "error.h"
 #include "machdep.h"
 #include "mystring.h"
+#include "system.h"
 
 /*
  * Like malloc, but returns an error when out of space.
diff --git a/src/output.c b/src/output.c
index 6ba3acd..2f9b5c4 100644
--- a/src/output.c
+++ b/src/output.c
@@ -62,6 +62,7 @@
 #include "memalloc.h"
 #include "error.h"
 #include "main.h"
+#include "system.h"
 
 
 #define OUTBUFSIZ BUFSIZ
2022-02-20Use separate edit buffers for each IDJune McEnroe 2022-02-20Make sure new cap is actually larger than new lengthJune McEnroe 2022-02-20Remove unused mbs.len field from struct EditJune McEnroe 2022-02-19Remove unneeded includes in ui.cJune McEnroe 2022-02-19Reimplement tab completeJune McEnroe 2022-02-19Handle errors from editFn, etc.June McEnroe 2022-02-19Reimplement text macrosJune McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe 2022-02-18Implement new line editing "library"June McEnroe 2022-02-18Simplify cursor positioning in inputJune McEnroe 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe