From: Benjamin Peterson Date: Mon, 2 Jan 2017 04:29:36 +0000 (-0600) Subject: only include sys/random.h if it seems like it might have something useful (#29057) X-Git-Tag: v2.7.14rc1~308 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f7d13c662cfc159d57d5896478e29759752e3e5;p=thirdparty%2FPython%2Fcpython.git only include sys/random.h if it seems like it might have something useful (#29057) --- diff --git a/Python/random.c b/Python/random.c index 08b2a998dd67..57c41ffcd64c 100644 --- a/Python/random.c +++ b/Python/random.c @@ -3,7 +3,7 @@ #include #else #include -#ifdef HAVE_SYS_RANDOM_H +#if defined(HAVE_SYS_RANDOM_H) && (defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY)) #include #endif #endif