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.
This commit is contained in:
Дмитрий Левин 2017-04-14 00:52:37 +00:00
parent 3860effe9a
commit d1a9966669

View 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)
{