Revert "test/Makefile: only look at $(KERNELDIR)/usr/include for files with quotes"
authorDaniel Mack <zonque@gmail.com>
Tue, 19 Aug 2014 14:22:53 +0000 (16:22 +0200)
committerDaniel Mack <zonque@gmail.com>
Tue, 19 Aug 2014 14:22:53 +0000 (16:22 +0200)
This reverts commit baeb2d8bbf2360524d4104ea851407a14085cef9.

Turns out this confuses cpp even more.

For now, people have to to 'make headers_install' in the kernel dir before
building kdbus.

test/Makefile
test/kdbus-util.c

index a0a1edb1fb932d5660d874760f9d71b8c6aeecaf..38459a275fed021c00b988522e0709441edd4c3e 100644 (file)
@@ -1,7 +1,6 @@
 CFLAGS         += -std=gnu99 -Wall -Wextra -g \
+                  -I$(KERNELDIR)/usr/include \
                   -I$(KERNELDIR)/include/uapi \
-                  -I. \
-                  -I- \
                   -D_GNU_SOURCE \
                   -Wno-unused-parameter \
                   -Wmaybe-uninitialized \
index 67b7435c7c17eace5620ee287f3ff1c2be82f1c1..f79d7ecf680b24a36cb97532cd269fd11a13185b 100644 (file)
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
+#include <linux/memfd.h>
 #include <linux/unistd.h>
 #include <linux/fcntl.h>
 
-#include "linux/memfd.h"
 #include "kdbus-util.h"
 #include "kdbus-enum.h"