Fix compilation on 2.6.27. As 2.6.27 is not yet released
authorFelix Fietkau <nbd@openwrt.org>
Mon, 29 Sep 2008 20:46:12 +0000 (13:46 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 29 Sep 2008 20:46:12 +0000 (13:46 -0700)
we use ifndef on ETH_P_PAE.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat.h

index 33cb98cc0010abcb13ba8ee9654b7842c89d8b81..0926df6c86d15f5ef73f392db97b15480e0ad5a4 100644 (file)
@@ -6,6 +6,11 @@
 #include <linux/compat_autoconf.h>
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28))
+#include <linux/if_ether.h>
+
+#ifndef ETH_P_PAE
+#define ETH_P_PAE 0x888E      /* Port Access Entity (IEEE 802.1X) */
+#endif
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)) */
 
 #endif /* LINUX_26_COMPAT_H */