Fixed semaphore header for kernels < 2.6.27. redundancy
authorFlorian Pose <fp@igh-essen.com>
Tue, 10 Jan 2012 10:43:36 +0100
branchredundancy
changeset 2341 80c03df98a49
parent 2340 3f2a4f9ff786
child 2342 4033d0d394ec
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"