From 9c94bc9d3a515ac5a519451f2dec4ab368e2b0e4 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 19 Nov 2019 21:13:15 +0000 Subject: [PATCH] Linux: Support kernels without PR_SET_MM_MAP --- compat/setproctitle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.47.2