Skip to content

Commit

Permalink
closes bpo-13497: Fix broken nice configure test. (GH-12041)
Browse files Browse the repository at this point in the history
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.
(cherry picked from commit 90c6fac)

Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
  • Loading branch information
miss-islington and ngie-eign committed Feb 26, 2019
1 parent 0b3019a commit 2055ebb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -4890,6 +4890,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);
Expand Down

0 comments on commit 2055ebb

Please sign in to comment.