summaryrefslogtreecommitdiff
path: root/test/unistd/clone_cruft.h
blob: dacc1b2bf95d70483fa1ee461e17efb6bdfd35b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* because people like to make things difficult */

#undef do_clone

#if defined __ia64__

# define do_clone(fn, stack, flags, arg) \
	__clone2(fn, stack, sizeof(stack), flags, arg, NULL, NULL, NULL)

#elif defined __hppa__

# define do_clone(fn, stack, flags, arg) \
	clone(fn, stack, flags, arg)

#else

# define do_clone(fn, stack, flags, arg) \
	clone(fn, stack+sizeof(stack), flags, arg)

#endif