summaryrefslogtreecommitdiff
path: root/m4/nproc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/nproc.m4')
-rw-r--r--m4/nproc.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/nproc.m4 b/m4/nproc.m4
index fead2346b2..f38591bbf3 100644
--- a/m4/nproc.m4
+++ b/m4/nproc.m4
@@ -1,4 +1,4 @@
-# nproc.m4 serial 4
+# nproc.m4 serial 5
dnl Copyright (C) 2009-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -40,7 +40,8 @@ AC_DEFUN([gl_PREREQ_NPROC],
[gl_cv_func_sched_getaffinity3],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
- [[#include <sched.h>]],
+ [[#include <errno.h>
+ #include <sched.h>]],
[[sched_getaffinity (0, 0, (cpu_set_t *) 0);]])],
[gl_cv_func_sched_getaffinity3=yes],
[gl_cv_func_sched_getaffinity3=no])