diff options
author | ngie-eign <1574099+ngie-eign@users.noreply.github.com> | 2019-02-26 05:34:24 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-02-26 05:34:24 (GMT) |
commit | 90c6facebd5666fec85f125ee2795b48b30319a4 (patch) | |
tree | 49b0a3f6f535ba8ead596a00704a26d08662902a | |
parent | 6673decfa0fb078f60587f5cb5e98460eea137c2 (diff) | |
download | cpython-90c6facebd5666fec85f125ee2795b48b30319a4.zip cpython-90c6facebd5666fec85f125ee2795b48b30319a4.tar.gz cpython-90c6facebd5666fec85f125ee2795b48b30319a4.tar.bz2 |
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.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index bb7861b..c7380ca 100644 --- a/configure.ac +++ b/configure.ac @@ -4727,6 +4727,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 <stdlib.h> +#include <unistd.h> int main() { int val1 = nice(1); |