diff options
| author | Roy Marples <roy@marples.name> | 2019-11-19 21:13:15 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-11-19 21:13:15 +0000 |
| commit | 083850720164800ef70b1fd451679223eee954c0 (patch) | |
| tree | 64b75060cb4a1e24745b288b88ec4c36e29706e1 /compat | |
| parent | 569051c8aa8fc297eb8edb7bd228e0fd353d30c1 (diff) | |
| download | dhcpcd-083850720164800ef70b1fd451679223eee954c0.tar.xz | |
Linux: Support kernels without PR_SET_MM_MAP
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/setproctitle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/setproctitle.c b/compat/setproctitle.c index f3a42f79..7fdf403b 100644 --- a/compat/setproctitle.c +++ b/compat/setproctitle.c @@ -69,7 +69,7 @@ int setproctitle(const char *fmt, ...) vsnprintf(tp, tl, fmt, args); va_end(args); -#ifdef __linux__ +#if defined(__linux__) && defined(PR_SET_MM_MAP) int fd, i; char *buf_ptr, *tmp_proctitle; char buf[BUFSIZ]; |
