From 389c0e545e26507afd1a394904574ddd8b35cb79 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 27 Jun 2001 19:22:27 +0000 Subject: Cleanup and don't require LIBC to be defined for the syscall numbers. --- include/sys/syscall.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/sys/syscall.h b/include/sys/syscall.h index 1efdd8271..723a99ee0 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -19,18 +19,14 @@ #ifndef _SYSCALL_H #define _SYSCALL_H 1 -/* 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. */ +/* This file provides us with our own private copy of the _syscall[0-5] macros. + * This is important, since on some arches (such as i386) the kernel's 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 - programs expect the traditional form `SYS_'. So in building libc - we scan the kernel's list and produce with macros for - all the `SYS_' names. */ -# include -#endif +/* This includes the `__NR_' syscall numbers taken from the Linux kernel + * header files. It also defines the traditional `SYS_' macros for older + * programs. */ +#include #endif -- cgit v1.2.3