Fixed semaphore header for kernels < 2.6.27.
authorFlorian Pose <fp@igh-essen.com>
Tue, 10 Jan 2012 10:43:36 +0100
changeset 2253 5be97f6cc76a
parent 2249 6dbd7594dd1d
child 2254 fe87d02a6790
Fixed semaphore header for kernels < 2.6.27.
master/ethernet.h
--- 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"