X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Frx%2FLINUX%2Frx_kmutex.h;h=6ea4faf07812764524e1bbd9d6625c1798182976;hp=cf6828e46f20d32b07f73fde194bc55ba40f1ae8;hb=6e7d51187c881e6a785b88ccddbb083e52d58448;hpb=da878c2b9d11471b3e59fc9fe0694a5e23e373c2 diff --git a/src/rx/LINUX/rx_kmutex.h b/src/rx/LINUX/rx_kmutex.h index cf6828e..6ea4faf 100644 --- a/src/rx/LINUX/rx_kmutex.h +++ b/src/rx/LINUX/rx_kmutex.h @@ -31,11 +31,21 @@ struct coda_inode_info { }; #endif -#include "linux/wait.h" -#include "linux/sched.h" +#include +#include +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) +#include +#else +#include +#endif typedef struct afs_kmutex { +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) + struct mutex mutex; +#else struct semaphore sem; +#endif int owner; } afs_kmutex_t;