summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/avr32/clone.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/avr32/clone.c')
-rw-r--r--libc/sysdeps/linux/avr32/clone.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/avr32/clone.c b/libc/sysdeps/linux/avr32/clone.c
index e43b0f3bf..06e3388b8 100644
--- a/libc/sysdeps/linux/avr32/clone.c
+++ b/libc/sysdeps/linux/avr32/clone.c
@@ -5,6 +5,7 @@
* Public License. See the file "COPYING.LIB" in the main directory of this
* archive for more details.
*/
+#include <sched.h>
#include <errno.h>
#include <sys/syscall.h>
#include <unistd.h>
@@ -14,7 +15,7 @@
* parameters are preserved when returning as the child. If the
* compiler stores them in registers (r0-r7), they should be.
*/
-int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg)
+int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg, ...)
{
register int (*_fn)(void *arg) = fn;
register void *_arg = arg;