diff options
Diffstat (limited to 'test/unistd/clone_cruft.h')
-rw-r--r-- | test/unistd/clone_cruft.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/unistd/clone_cruft.h b/test/unistd/clone_cruft.h new file mode 100644 index 000000000..dacc1b2bf --- /dev/null +++ b/test/unistd/clone_cruft.h @@ -0,0 +1,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 |