From e9efa23ae121c8976e5dc2bbcf29e029b5087e76 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Sun, 14 May 2000 04:19:43 +0000 Subject: Patch from "D. Jeff Dionne / VE3DJF" to allow uC-libc to compile under x86. -Erik --- include/unistd.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index 6c39b42c5..ef67fafc4 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -6,8 +6,9 @@ #define __UNISTD_H #include +#ifdef __mc68000__ #include - +#endif #define STDIN_FILENO 0 #define STDOUT_FILENO 1 #define STDERR_FILENO 2 @@ -72,6 +73,8 @@ __res; \ }) #endif +#ifdef __mc68000__ + #define vfork() ({ \ register unsigned long __res __asm__ ("%d0") = __NR_fork; \ __asm__ __volatile__ ("trap #0" \ @@ -86,9 +89,10 @@ if (__res >= (unsigned long)-4096) { \ }) + #define fork fork_not_available_use_vfork #define clone clone_not_available_use__clone - +#endif #ifndef SEEK_SET #define SEEK_SET 0 -- cgit v1.2.3