Fixed semaphore header for kernels < 2.6.27. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Tue, 10 Jan 2012 10:43:36 +0100
branchstable-1.5
changeset 2250 db932582b674
parent 2244 fc891656a9fe
child 2251 5023ce75fe91
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"