kbuild: prevent exported headers from including <stdlib.h>, <stdbool.h>
[linux-block.git] / usr / include / Makefile
index fa9819e022b7178052c796715afe4abad98bfcb7..7740777b49f87ea7675cd9c6537f19eff3cc3987 100644 (file)
@@ -15,7 +15,7 @@ UAPI_CFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS))
 # USERCFLAGS might contain sysroot location for CC.
 UAPI_CFLAGS += $(USERCFLAGS)
 
-override c_flags = $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -I$(objtree)/usr/include
+override c_flags = $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -I $(obj) -I $(srctree)/usr/dummy-include
 
 # The following are excluded for now because they fail to build.
 #