Commit a0f656d3 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

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.
(cherry picked from commit 90c6face)
Co-authored-by: default avatarngie-eign <1574099+ngie-eign@users.noreply.github.com>
parent b5213f4d
...@@ -4364,6 +4364,8 @@ LIBS=$LIBS_no_readline ...@@ -4364,6 +4364,8 @@ LIBS=$LIBS_no_readline
AC_MSG_CHECKING(for broken nice()) AC_MSG_CHECKING(for broken nice())
AC_CACHE_VAL(ac_cv_broken_nice, [ AC_CACHE_VAL(ac_cv_broken_nice, [
AC_RUN_IFELSE([AC_LANG_SOURCE([[ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdlib.h>
#include <unistd.h>
int main() int main()
{ {
int val1 = nice(1); int val1 = nice(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment