From: Roy Marples Date: Tue, 19 Nov 2019 21:13:15 +0000 (+0000) Subject: Linux: Support kernels without PR_SET_MM_MAP X-Git-Tag: v8.1.3~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c94bc9d3a515ac5a519451f2dec4ab368e2b0e4;p=thirdparty%2Fdhcpcd.git Linux: Support kernels without PR_SET_MM_MAP --- 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];