Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90c6fac

Browse files
ngie-eignbenjaminp
authored andcommitted
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.
1 parent 6673dec commit 90c6fac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4727,6 +4727,8 @@ LIBS=$LIBS_no_readline
47274727
AC_MSG_CHECKING(for broken nice())
47284728
AC_CACHE_VAL(ac_cv_broken_nice, [
47294729
AC_RUN_IFELSE([AC_LANG_SOURCE([[
4730+
#include <stdlib.h>
4731+
#include <unistd.h>
47304732
int main()
47314733
{
47324734
int val1 = nice(1);

0 commit comments

Comments
 (0)