summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-14 04:19:43 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-14 04:19:43 +0000
commite9efa23ae121c8976e5dc2bbcf29e029b5087e76 (patch)
tree55c9bdfec6626bdcb4fa81548a6177b28d8ee223 /include/unistd.h
parent64bc6412188b141c010ac3b8e813b837dd991e80 (diff)
Patch from "D. Jeff Dionne / VE3DJF" <jeff@rt-control.com>
to allow uC-libc to compile under x86. -Erik
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h8
1 files changed, 6 insertions, 2 deletions
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 <errno.h>
+#ifdef __mc68000__
#include <asm/unistd.h>
-
+#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