diff options
Diffstat (limited to 'nptl/tst-cond18.c')
-rw-r--r-- | nptl/tst-cond18.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/tst-cond18.c b/nptl/tst-cond18.c index 8d77025d79..187f3af1df 100644 --- a/nptl/tst-cond18.c +++ b/nptl/tst-cond18.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <errno.h> +#include <limits.h> #include <fcntl.h> #include <pthread.h> #include <stdbool.h> @@ -90,7 +91,7 @@ do_test (void) pthread_attr_t attr; int i, ret, sz; pthread_attr_init (&attr); - sz = __getpagesize (); + sz = sysconf (_SC_PAGESIZE); if (sz < PTHREAD_STACK_MIN) sz = PTHREAD_STACK_MIN; pthread_attr_setstacksize (&attr, sz); |