]> granicus.if.org Git - strace/commitdiff
tests: fix ioctl_nsfs.test on ia64
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 14 Apr 2017 00:52:37 +0000 (00:52 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 14 Apr 2017 00:52:37 +0000 (00:52 +0000)
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

index 02612354fc8577ab16881e44e82a25565ad14367..c784c49d0283adcdae0217d2b41ce1fd2bfd8a76 100644 (file)
@@ -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)
 {