# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1326188616 -3600
# Node ID db932582b6742d8b25d6a13afada93a9f571209f
# Parent  fc891656a9fe7dea421ffb322ab2559a69dcfcca
Fixed semaphore header for kernels < 2.6.27.

diff -r fc891656a9fe -r db932582b674 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"