From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 26 Feb 2019 05:54:33 +0000 (-0800) Subject: closes bpo-13497: Fix `broken nice` configure test. (GH-12041) X-Git-Tag: v2.7.17rc1~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0f656d310bdd08aaaa6f1e186bc7a4174e4068f;p=thirdparty%2FPython%2Fcpython.git closes bpo-13497: Fix `broken nice` configure test. (GH-12041) Per POSIX, `nice(3)` requires `unistd.h` and `exit(3)` requires `stdlib.h`. Fixing the test will prevent false positives with pedantic compilers like clang. (cherry picked from commit 90c6facebd5666fec85f125ee2795b48b30319a4) Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com> --- diff --git a/configure.ac b/configure.ac index aecf6066e8ae..7396c1f2ff45 100644 --- a/configure.ac +++ b/configure.ac @@ -4364,6 +4364,8 @@ LIBS=$LIBS_no_readline AC_MSG_CHECKING(for broken nice()) AC_CACHE_VAL(ac_cv_broken_nice, [ AC_RUN_IFELSE([AC_LANG_SOURCE([[ +#include +#include int main() { int val1 = nice(1);