about summary refs log tree commit diff
path: root/nptl/tst-cond16.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-cond16.c')
-rw-r--r--nptl/tst-cond16.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/tst-cond16.c b/nptl/tst-cond16.c
index d3d7cca40e..032677adcc 100644
--- a/nptl/tst-cond16.c
+++ b/nptl/tst-cond16.c
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
+#include <limits.h>
 #include <pthread.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -79,7 +80,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);