diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-02-04 08:24:07 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-02-04 08:24:07 +0000 |
commit | 7b830a0c65d0482ac9f9fe4f689c0f4ce8944848 (patch) | |
tree | 0767b8ad7be3608e7ca8cddf5a4f9e5790c4b51a /extra/scripts | |
parent | e0f6954b522350cc7c1e7ee487e26f4eeef07c34 (diff) |
Add include guards
Diffstat (limited to 'extra/scripts')
-rwxr-xr-x | extra/scripts/gen_bits_syscall_h.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extra/scripts/gen_bits_syscall_h.sh b/extra/scripts/gen_bits_syscall_h.sh index 3adb03770..6ebbb434b 100755 --- a/extra/scripts/gen_bits_syscall_h.sh +++ b/extra/scripts/gen_bits_syscall_h.sh @@ -16,10 +16,13 @@ UNISTD_H_PATH=$TOPDIR/include/asm/unistd.h ) | $CC -E - | ( echo "/* WARNING!!! AUTO-GENERATED FILE!!! DO NOT EDIT!!! */" ; echo ; + echo "#ifndef _BITS_SYSCALL_H" ; + echo "#define _BITS_SYSCALL_H" ; echo "#ifndef _SYSCALL_H" ; echo "# error \"Never use <bits/syscall.h> directly; include <sys/syscall.h> instead.\"" ; echo "#endif" ; echo ; sed -ne 's/^UCLIBC_\([A-Za-z0-9_]*\) *\(.*\)/#define __NR_\1 \2\ #define SYS_\1 __NR_\1\ #define __STR_NR_\1 \"\2\"/gp' + echo "#endif" ; echo ; ) |