diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-align-clone.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/tst-align-clone.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-align-clone.c b/sysdeps/unix/sysv/linux/tst-align-clone.c index fe4b371..1f39d81 100644 --- a/sysdeps/unix/sysv/linux/tst-align-clone.c +++ b/sysdeps/unix/sysv/linux/tst-align-clone.c @@ -48,21 +48,13 @@ do_test (void) if (TEST_STACK_ALIGN ()) ok = false; -#ifdef __ia64__ - extern int __clone2 (int (*__fn) (void *__arg), void *__child_stack_base, - size_t __child_stack_size, int __flags, - void *__arg, ...); - char st[256 * 1024]; - pid_t p = __clone2 (f, st, sizeof (st), 0, 0); -#else char st[128 * 1024] __attribute__ ((aligned)); -# if _STACK_GROWS_DOWN +#if _STACK_GROWS_DOWN pid_t p = clone (f, st + sizeof (st), 0, 0); -# elif _STACK_GROWS_UP +#elif _STACK_GROWS_UP pid_t p = clone (f, st, 0, 0); -# else -# error "Define either _STACK_GROWS_DOWN or _STACK_GROWS_UP" -# endif +#else +# error "Define either _STACK_GROWS_DOWN or _STACK_GROWS_UP" #endif if (p == -1) { |