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.
CFLAGS += -std=gnu99 -Wall -Wextra -g \
- -I$(KERNELDIR)/usr/include \
-I$(KERNELDIR)/include/uapi \
+ -I. \
+ -I- \
-D_GNU_SOURCE \
-Wno-unused-parameter \
-Wmaybe-uninitialized \
#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"