Skip to content

Commit 529b0ff

Browse files
ngie-eignmcepl
authored andcommitted
fix broken nice configure test.
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. Code is from gh#python/cpython!12041 (released upstream in 3.8.0) Fixes: bpo#13497 Patch: broken-nice-configure-missint-include.patch
1 parent 7177838 commit 529b0ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4988,6 +4988,8 @@ LIBS=$LIBS_no_readline
49884988
AC_MSG_CHECKING(for broken nice())
49894989
AC_CACHE_VAL(ac_cv_broken_nice, [
49904990
AC_RUN_IFELSE([AC_LANG_SOURCE([[
4991+
#include <stdlib.h>
4992+
#include <unistd.h>
49914993
int main()
49924994
{
49934995
int val1 = nice(1);

0 commit comments

Comments
 (0)