summaryrefslogtreecommitdiff
path: root/usr/include
diff options
context:
space:
mode:
Diffstat (limited to 'usr/include')
-rw-r--r--usr/include/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/include/Makefile b/usr/include/Makefile
index d352280b0e4a..845d06b63c2b 100644
--- a/usr/include/Makefile
+++ b/usr/include/Makefile
@@ -137,14 +137,14 @@ endif
always-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null))
-target-no-libc = $(filter-out $(uses-libc), $*.h)
+target-libc = $(filter $(uses-libc), $*.h)
target-can-compile = $(filter-out $(no-header-test), $*.h)
# Include the header twice to detect missing include guard.
quiet_cmd_hdrtest = HDRTEST $<
cmd_hdrtest = \
$(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \
- -nostdinc $(if $(target-no-libc), , -I $(srctree)/usr/dummy-include) \
+ -nostdinc $(if $(target-libc), -I $(srctree)/usr/dummy-include) \
$(if $(target-can-compile), -include $< -include $<); \
$(PERL) $(src)/headers_check.pl $(obj) $<; \
touch $@