diff options
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c b/nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c new file mode 100644 index 0000000000..9472dd17ef --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c @@ -0,0 +1,8 @@ +#define NEW_VERNUM GLIBC_2_6 +#define STACKSIZE_ADJUST \ + do { \ + size_t ps = __getpagesize (); \ + if (stacksize < 2 * ps) \ + stacksize = 2 * ps; \ + } while (0) +#include <nptl/pthread_attr_setstacksize.c> |