From 8b384a7013a6755c5a83ab71ee9065e3e48f8783 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 29 Oct 2005 16:29:22 +1000 Subject: Added missing system.h inclusion for mempcpy All users of mempcpy must include system.h. --- src/expand.c | 6 +----- src/memalloc.c | 1 + src/output.c | 1 + 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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 -- cgit 1.4.1 method='get' action='/src/log/bin/man1'>
path: root/bin/man1 (unfollow)
Commit message (Expand)Author
2020-01-20Use C syntax for Objective-C .m filesJune McEnroe
2020-01-20Add litterbox to causal.agencyJune McEnroe
2020-01-15Move mksh to Linux-onlyJune McEnroe
2020-01-15Remove gpg from install.shJune McEnroe
2020-01-15Remove git from install.shJune McEnroe
2020-01-14Highlight single-char variables nested in make interpolationsJune McEnroe
2020-01-08Set Bl -column tables to 100% widthJune McEnroe
2020-01-08Don't add dt margins to Bl-compact listsJune McEnroe
2020-01-08Use mandoc -T html for about-filterJune McEnroe
2020-01-05Add The Book of FloraJune McEnroe
2020-01-04Replace gr alias with git resetJune McEnroe
2020-01-03Remove shotty -c flag from upJune McEnroe
2020-01-03Add Darling Don't CryJune McEnroe
2020-01-01Update license header templates for the new yearJune McEnroe
2019-12-26Add \S to sort inside bracesJune McEnroe
2019-12-23Reformat music.txtJune McEnroe
2019-12-23Rename music.md to music.txtJune McEnroe
2019-12-23Add DO YOU DOUBT ME TRAITORJune McEnroe
2019-12-22Add license header to cgit CSSJune McEnroe
2019-12-22Add The Book of EttaJune McEnroe
2019-12-21Revert "Add first working version of imbox"June McEnroe
2019-12-21Add first working version of imboxJune McEnroe
2019-12-20Respect mailmap in gl pretty formatJune McEnroe
2019-12-20Set LANG in cgit filtersJune McEnroe
2019-12-20Source .editrc before applying -v or -eJune McEnroe
2019-12-20Disable signing commitsJune McEnroe
2019-12-19Ignore about-filterJune McEnroe
2019-12-19Fix matching make tags with no sourcesJune McEnroe
2019-12-19Avoid matching := assignments as tagsJune McEnroe
2019-12-18Hide line numbers when rendering mdocJune McEnroe
2019-12-18Customize cgit CSSJune McEnroe
2019-12-18Use :target rather than :focus pseudo-classJune McEnroe
2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe
2019-12-18Add git.causal.agency cgit configJune McEnroe
2019-12-18Bail from hi if input is binaryJune McEnroe
2019-12-16Post "cgit setup"June McEnroe