From f0d383b45bf6b28ab8e579d7da3288ac16cdef64 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 23 Jun 2001 13:40:33 +0000 Subject: This adds in support for PIC on x86. Unfortunately, this will break all arches till they add in an libc/sysdeps/linux//bits/syscalls.h file. Sorry about there, there was no other way... -Erik --- include/sys/syscall.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/sys') 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 +/* 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 #ifndef _LIBC /* The Linux kernel header file defines macros `__NR_', but some -- cgit v1.2.3