]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Linux: Support kernels without PR_SET_MM_MAP
authorRoy Marples <roy@marples.name>
Tue, 19 Nov 2019 21:13:15 +0000 (21:13 +0000)
committerRoy Marples <roy@marples.name>
Tue, 19 Nov 2019 21:13:15 +0000 (21:13 +0000)
compat/setproctitle.c

index f3a42f796475f56627d596e472cc7601bae17d09..7fdf403b2790cff57e7969f4e75445a0b821a6d8 100644 (file)
@@ -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];