-inline static UNUSED ALWAYSINLINE
-_syscall2(int, sys_clone, int, flags, void *, child_stack)
+#if defined(__s390__) && defined(ENSC_SYSCALL_TRADITIONAL)
+ ret = syscall(__NR__sys_clone, child_stack, flags);
+#elif defined(__s390__)
+ ret = _sys_clone(child_stack, flags);
+#elif defined(ENSC_SYSCALL_TRADITIONAL)
+ ret = syscall(__NR__sys_clone, flags, child_stack);
+#else
+ ret = _sys_clone(flags, child_stack);
+#endif
+#ifdef __sparc__
+ if (ret == parent)
+ ret = 0;