From a93f9cbc27a00f1bfe64b5ced19b8fde3bdbb1ea Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 16 Nov 2012 18:55:19 +0100 Subject: check-local-headers: ignore Mach kernel headers --- scripts/check-local-headers.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/check-local-headers.sh b/scripts/check-local-headers.sh index 5cc8def3e5..e744f8c74e 100755 --- a/scripts/check-local-headers.sh +++ b/scripts/check-local-headers.sh @@ -27,12 +27,13 @@ shopt -s nullglob # Search all dependency files for file names in the include directory. # There are a few system headers we are known to use. -# These include Linux kernel headers (asm*, arch, and linux). +# These include Linux kernel headers (asm*, arch, and linux), +# and Mach kernel headers (mach). exec ${AWK} -v includedir="$includedir" ' BEGIN { status = 0 exclude = "^" includedir \ - "/(.*-.*-.*/|)(asm[-/]|arch|linux/|selinux/|gd|nss3/|c\\+\\+/|sys/(capability|sdt(|-config))\\.h|libaudit\\.h)" + "/(.*-.*-.*/|)(asm[-/]|arch|linux/|selinux/|mach/|gd|nss3/|c\\+\\+/|sys/(capability|sdt(|-config))\\.h|libaudit\\.h)" } /^[^ ]/ && $1 ~ /.*:/ { obj = $1 } { -- cgit v1.2.3