From: Nick Mathewson Date: Wed, 29 May 2019 13:22:18 +0000 (-0400) Subject: Give a compile warning when we don't have any flags for minherit(). X-Git-Tag: tor-0.4.1.3-alpha~6^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cad0de35bd49064f5712f32a2b6e41ffe6e822e6;p=thirdparty%2Ftor.git Give a compile warning when we don't have any flags for minherit(). Part of ticket 30686. --- diff --git a/src/lib/malloc/map_anon.c b/src/lib/malloc/map_anon.c index f4fda00bff..6afea713df 100644 --- a/src/lib/malloc/map_anon.c +++ b/src/lib/malloc/map_anon.c @@ -70,6 +70,11 @@ #endif +#if defined(HAVE_MINHERIT) && !defined(FLAG_ZERO) && !defined(FLAG_NOINHERIT) +#warn "minherit() is defined, but we couldn't find the right flag for it." +#warn "This is probably a bug in Tor's support for this platform." +#endif + /** * Helper: try to prevent the sz bytes at mem from being swapped * to disk. Return 0 on success or if the facility is not available on this