mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +03:00
Include semaphore.h for mutexes
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4109 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
b801960404
commit
b4a185df81
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user