diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-06-25 09:30:00 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2022-08-18 00:14:28 +0200 |
commit | f733e291bb2a0fed0542fc23a698aebcea01c571 (patch) | |
tree | c29841cd6935c92276662314799d3576cdd5c464 | |
parent | 43757c70eee1cff52aec3f7ee31397c14b58651c (diff) | |
download | glibc-f733e291bb2a0fed0542fc23a698aebcea01c571.tar.gz glibc-f733e291bb2a0fed0542fc23a698aebcea01c571.tar.xz glibc-f733e291bb2a0fed0542fc23a698aebcea01c571.zip |
support: Fix xclone build failures on ia64 and hppa
(cherry picked from commit 97ed4749becdc20481688ee074e90507ca3501dd)
-rw-r--r-- | support/xclone.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/support/xclone.c b/support/xclone.c index 924d2b8754..243eee8b23 100644 --- a/support/xclone.c +++ b/support/xclone.c @@ -30,15 +30,14 @@ xclone (int (*fn) (void *arg), void *arg, void *stack, size_t stack_size, # ifdef __ia64__ extern int __clone2 (int (*fn) (void *arg), void *stack, size_t stack_size, int flags, void *arg, ...); - r = __clone2 (f, stack, stack_size, flags, arg, /* ptid */ NULL, - /* tls */ NULL, /* ctid */ ctid); + r = __clone2 (fn, stack, stack_size, flags, arg, /* ptid */ NULL, + /* tls */ NULL, /* ctid */ NULL); # else # if _STACK_GROWS_DOWN r = clone (fn, stack + stack_size, flags, arg, /* ptid */ NULL, /* tls */ NULL, /* ctid */ NULL); # elif _STACK_GROWS_UP - r = clone (fn, stack, flags, arg, /* ptid */ NULL, /* tls */ NULL, - &ctid); + r = clone (fn, stack, flags, arg, /* ptid */ NULL, /* tls */ NULL, NULL); # endif # endif |