Include semaphore.h for mutexes
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 18 Jan 2010 13:46:57 +0000 (13:46 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 18 Jan 2010 13:46:57 +0000 (13:46 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4109 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_athvar.h

index 612a4dbdfa2667122b82c0f8e93b484415d1bdab..e70f76f08b9d1c4f3f82c4afb01c39946204320a 100644 (file)
@@ -984,6 +984,11 @@ typedef void (*ath_callback) (struct ath_softc *);
 #define ATH_GBUF_LOCK_CHECK(_sc)
 #endif
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
+#include <linux/semaphore.h>
+#else
+#include <asm/semaphore.h>
+#endif
 /* Protects the device from concurrent accesses */
 #define        ATH_LOCK_INIT(_sc)              init_MUTEX(&(_sc)->sc_lock)
 #define        ATH_LOCK_DESTROY(_sc)