diff --git a/utils.c b/utils.c index f6f7b412..87220b5c 100644 --- a/utils.c +++ b/utils.c @@ -518,7 +518,7 @@ void uwsgi_as_root() { } #endif -#ifdef __linux__ +#if defined(__linux__) && !defined(OBSOLETE_LINUX_KERNEL) if (uwsgi.unshare && !uwsgi.reloads) { if (unshare(uwsgi.unshare)) {