From 26f8fd011ae81e783f456366c3b95c0862594228 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 1 Jul 2016 11:43:24 +0300 Subject: [PATCH] pre-process: make -nostdinc work again I was adding the system headers in the wrong place so it broke the kernel build. Signed-off-by: Dan Carpenter --- pre-process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre-process.c b/pre-process.c index b2a5360c..3519a0b7 100644 --- a/pre-process.c +++ b/pre-process.c @@ -2009,7 +2009,7 @@ void init_include_path(void) strcpy(os, "linux-gnu"); snprintf(path, sizeof(path), "/usr/include/%s-%s/", arch, os); - add_pre_buffer("#add_include \"%s/\"\n", path); + add_pre_buffer("#add_system \"%s/\"\n", path); } struct token * preprocess(struct token *token) -- 2.11.4.GIT