diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-08-31 22:26:54 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-08-31 22:26:54 +0000 |
commit | ea96cab5ecd516360b684703de3f38981ce82b9e (patch) | |
tree | 1fbfca95b075646a85b79bcc87a1d639d313ca14 | |
parent | 228ae771b9643d557ea7623e2de7ef077336d99c (diff) |
Disable intercept tests on Win32 as well
Define O_BINARY to 0 (zero) if our platform doesn't have it (all except
Win32?) which enables us to reduce #ifdefs
(refs #3)
-rw-r--r-- | lib/common/BoxPlatform.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/common/BoxPlatform.h b/lib/common/BoxPlatform.h index b766706a..cb83f7a9 100644 --- a/lib/common/BoxPlatform.h +++ b/lib/common/BoxPlatform.h @@ -40,8 +40,8 @@ #endif #endif -// Slight hack; disable interception on Darwin within raidfile test -#ifdef __APPLE__ +// Slight hack; disable interception in raidfile test on Darwin and Windows +#if defined __APPLE__ || defined WIN32 // TODO: Replace with autoconf test #define PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE #endif @@ -138,6 +138,11 @@ #define INFTIM -1 #endif +// for Unix compatibility with Windows :-) +#if !HAVE_DECL_O_BINARY + #define O_BINARY 0 +#endif + #ifdef WIN32 typedef u_int64_t InodeRefType; #else |