summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-23 13:40:33 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-23 13:40:33 +0000
commitf0d383b45bf6b28ab8e579d7da3288ac16cdef64 (patch)
tree40d292707f83c1fd6d361ac07acccb78b365540f /include
parent3c6f0ae16723e0ce96fcb9b5f93d7135bdeb4ee1 (diff)
This adds in support for PIC on x86. Unfortunately, this will break
all arches till they add in an libc/sysdeps/linux/<arch>/bits/syscalls.h file. Sorry about there, there was no other way... -Erik
Diffstat (limited to 'include')
-rw-r--r--include/sys/syscall.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sys/syscall.h b/include/sys/syscall.h
index 7eca4f086..1efdd8271 100644
--- a/include/sys/syscall.h
+++ b/include/sys/syscall.h
@@ -19,10 +19,11 @@
#ifndef _SYSCALL_H
#define _SYSCALL_H 1
-/* This file should list the numbers of the system the system knows.
- But instead of duplicating this we use the information available
- from the kernel sources. */
-#include <asm/unistd.h>
+/* This file includes the kernel's syscall list, and then includes our own
+ * private copy of the _syscall macros. This is important, since on
+ * some arches (such as i386), the kernel _syscall[0-5] macros don't
+ * handle things like PIC code, so we can't use them. */
+#include <bits/syscalls.h>
#ifndef _LIBC
/* The Linux kernel header file defines macros `__NR_<name>', but some