diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-04 01:20:54 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-04 01:20:54 +0000 |
commit | c429bf3057c87dd9545fc2d824b5930c52f7dfb8 (patch) | |
tree | f207534c6a7a16795f8e7a099c1b48180e9db94f /test/unistd/clone_cruft.h | |
parent | 798669dc65077f81b6facd2415463a1bda13c4d7 (diff) |
import files from glibc for an ia64/static port
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 |