From d1a996666997a87dbaaeda260eba4683aa8d2905 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 14 Apr 2017 00:52:37 +0000 Subject: [PATCH] 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. --- tests/ioctl_nsfs.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.50.1