aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@winlab.rutgers.edu>2007-11-16 18:52:45 -0500
committerLuis R. Rodriguez <mcgrof@winlab.rutgers.edu>2007-11-16 18:52:45 -0500
commit5e6c9b109b4df95afabbdd44eac271b65e2b98d5 (patch)
treeecd7a342338fb3058970664fe88cf41a7ec93c5b
parent90aa4dd2e1ce5850bca068e0060d09f73009ac55 (diff)
downloadcompat-wireless-2.6-old-5e6c9b109b4df95afabbdd44eac271b65e2b98d5.tar.gz
Force inclusion of compat.h first.
Include linux/autoconf.h before other headers. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
-rw-r--r--Makefile1
-rw-r--r--compat/compat.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9b6eb11..8244082 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ ifneq ($(KERNELRELEASE),)
# This is a hack! But hey.. it works, got any better ideas, send a patch ;)
NOSTDINC_FLAGS := -I$(PWD)/include/ $(CFLAGS)
+NOSTDINC_FLAGS := -I$(PWD)/include/ -include $(M)/compat/compat.h $(CFLAGS
obj-y := net/wireless/ net/mac80211/ \
drivers/ssb/ \
diff --git a/compat/compat.h b/compat/compat.h
index f61c16f..e23ab9d 100644
--- a/compat/compat.h
+++ b/compat/compat.h
@@ -1,6 +1,7 @@
#ifndef LINUX_26_COMPAT_H
#define LINUX_26_COMPAT_H
+#include <linux/autoconf.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/genetlink.h>