Fix winverbs build for XP.
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 4 Aug 2008 20:51:57 +0000 (20:51 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 4 Aug 2008 20:51:57 +0000 (20:51 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1464 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/winverbs/kernel/wv_driver.h

index 494334b..22d9ae6 100644 (file)
 #include <rdma\verbs.h>\r
 #include "wv_ioctl.h"\r
 \r
+#if WINVER <= _WIN32_WINNT_WINXP\r
+#define KGUARDED_MUTEX FAST_MUTEX\r
+#define KeInitializeGuardedMutex ExInitializeFastMutex\r
+#define KeAcquireGuardedMutex ExAcquireFastMutex\r
+#define KeReleaseGuardedMutex ExReleaseFastMutex\r
+#endif\r
+\r
 extern WDFDEVICE                       ControlDevice;\r
 \r
 typedef struct _WV_RDMA_DEVICE\r