From: Florian Weimer Date: Fri, 25 Jun 2021 07:30:00 +0000 (+0200) Subject: support: Fix xclone build failures on ia64 and hppa X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06ce5fbd6d815823822da0c75b025298eb7edb08;p=thirdparty%2Fglibc.git support: Fix xclone build failures on ia64 and hppa (cherry picked from commit 97ed4749becdc20481688ee074e90507ca3501dd) --- diff --git a/support/xclone.c b/support/xclone.c index 924d2b87540..243eee8b23f 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