[Python-checkins] closes bpo-13497: Fix `broken nice` configure test. (GH-12041)

Benjamin Peterson webhook-mailer at python.org
Tue Feb 26 00:34:29 EST 2019

commit: 90c6facebd5666fec85f125ee2795b48b30319a4
branch: master
author: ngie-eign <1574099+ngie-eign at users.noreply.github.com>
committer: Benjamin Peterson <benjamin at python.org>
date: 2019-02-25T21:34:24-08:00

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.

M configure.ac

diff --git a/configure.ac b/configure.ac
index bb7861bc0daa..c7380caa1964 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, [
+#include <stdlib.h>
+#include <unistd.h>
 int main()
 	int val1 = nice(1);

More information about the Python-checkins mailing list