From: Dmitry V. Levin Date: Fri, 14 Apr 2017 00:52:37 +0000 (+0000) Subject: tests: fix ioctl_nsfs.test on ia64 X-Git-Tag: v4.17~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1a996666997a87dbaaeda260eba4683aa8d2905;p=strace tests: fix ioctl_nsfs.test on ia64 glibc on ia64 provides no clone() function, but there is a __clone2 function instead. It is documented but no prototype is provided by glibc. * tests/ioctl_nsfs.c [IA64] (__clone2): New prototype. [IA64] (clone): New macro wrapper around __clone2. --- diff --git a/tests/ioctl_nsfs.c b/tests/ioctl_nsfs.c index 02612354..c784c49d 100644 --- a/tests/ioctl_nsfs.c +++ b/tests/ioctl_nsfs.c @@ -103,6 +103,12 @@ child(void *arg) return 0; } +#ifdef IA64 +extern int __clone2(int (*)(void *), void *, size_t, int, void *, ...); +# define clone(fn, child_stack, flags, arg) \ + __clone2(fn, child_stack - 4096, 4096, flags, arg) +#endif + static void test_user_namespace(void) {