about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/syscall.h')
-rw-r--r--sysdeps/unix/sysv/linux/syscall.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/syscall.h b/sysdeps/unix/sysv/linux/syscall.h
index 62fca57d70..1fbda4c56e 100644
--- a/sysdeps/unix/sysv/linux/syscall.h
+++ b/sysdeps/unix/sysv/linux/syscall.h
@@ -24,4 +24,12 @@ Cambridge, MA 02139, USA.  */
    from the kernel sources.  */
 #include <asm/unistd.h>
 
+#ifndef _LIBC
+/* The Linux kernel header file defines macros `__NR_<name>', but some
+   programs expect the traditional form `SYS_<name>'.  So in building libc
+   we scan the kernel's list and produce <syscall-list.h> with macros for
+   all the `SYS_' names.  */
+#include <syscall-list.h>
+#endif
+
 #endif