From: Daniel Mack Date: Tue, 19 Aug 2014 13:19:40 +0000 (+0200) Subject: test/Makefile: only look at $(KERNELDIR)/usr/include for files with quotes X-Git-Tag: upstream/0.20140911.160207utc~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=baeb2d8bbf2360524d4104ea851407a14085cef9;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git test/Makefile: only look at $(KERNELDIR)/usr/include for files with quotes This is a hack to make cpp look at system include files first, and then consult $(KERNELDIR)/usr/include. For this to work, include directives referring to files in uapi have to be addressed with quotes. --- diff --git a/test/Makefile b/test/Makefile index 38459a2..a0a1edb 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,6 +1,7 @@ CFLAGS += -std=gnu99 -Wall -Wextra -g \ - -I$(KERNELDIR)/usr/include \ -I$(KERNELDIR)/include/uapi \ + -I. \ + -I- \ -D_GNU_SOURCE \ -Wno-unused-parameter \ -Wmaybe-uninitialized \ diff --git a/test/kdbus-util.c b/test/kdbus-util.c index f79d7ec..67b7435 100644 --- a/test/kdbus-util.c +++ b/test/kdbus-util.c @@ -24,10 +24,10 @@ #include #include #include -#include #include #include +#include "linux/memfd.h" #include "kdbus-util.h" #include "kdbus-enum.h"