Skip to content

Commit 099e60b

Browse files
ngie-eignmcepl
authored andcommitted
00409: bpo-13497: 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.
1 parent 2c6cbe5 commit 099e60b

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
@@ -4946,6 +4946,8 @@ LIBS=$LIBS_no_readline
49464946
AC_MSG_CHECKING(for broken nice())
49474947
AC_CACHE_VAL(ac_cv_broken_nice, [
49484948
AC_RUN_IFELSE([AC_LANG_SOURCE([[
4949+
#include <stdlib.h>
4950+
#include <unistd.h>
49494951
int main()
49504952
{
49514953
int val1 = nice(1);

0 commit comments

Comments
 (0)