[Box Backup-dev] COMMIT r706 - box/chris/general/lib/common
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Thu Jul 27 23:29:32 BST 2006
Author: chris
Date: 2006-07-27 22:29:31 +0000 (Thu, 27 Jul 2006)
New Revision: 706
Modified:
box/chris/general/lib/common/BoxPlatform.h
Log:
* BoxPlatform.h
- If the platform does not define O_BINARY, we define it ourselves to
something harmless
- Improved comment about disabling intercepts on Windows
Modified: box/chris/general/lib/common/BoxPlatform.h
===================================================================
--- box/chris/general/lib/common/BoxPlatform.h 2006-07-27 22:28:21 UTC (rev 705)
+++ box/chris/general/lib/common/BoxPlatform.h 2006-07-27 22:29:31 UTC (rev 706)
@@ -45,7 +45,7 @@
#endif
#endif
-// Slight hack; disable interception on Darwin within raidfile test
+// 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
@@ -143,6 +143,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
More information about the Boxbackup-dev
mailing list