master/ethernet.h
changeset 2253 5be97f6cc76a
parent 2045 ff2a13a4603c
child 2589 2b9c78543663
--- a/master/ethernet.h	Tue Jan 10 10:11:20 2012 +0100
+++ b/master/ethernet.h	Tue Jan 10 10:43:36 2012 +0100
@@ -39,7 +39,12 @@
 
 #include <linux/list.h>
 #include <linux/netdevice.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
 #include <linux/semaphore.h>
+#else
+#include <asm/semaphore.h>
+#endif
 
 #include "globals.h"
 #include "slave.h"