[Box Backup-commit] COMMIT r1301 - box/chris/general/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sun, 25 Feb 2007 15:12:30 +0000
Author: chris
Date: 2007-02-25 15:12:30 +0000 (Sun, 25 Feb 2007)
New Revision: 1301
Modified:
box/chris/general/lib/common/BoxPlatform.h
Log:
Darwin port fix merge (makes no difference to win32)
Modified: box/chris/general/lib/common/BoxPlatform.h
===================================================================
--- box/chris/general/lib/common/BoxPlatform.h 2007-02-25 15:04:49 UTC (rev 1300)
+++ box/chris/general/lib/common/BoxPlatform.h 2007-02-25 15:12:30 UTC (rev 1301)
@@ -57,6 +57,14 @@
#define PLATFORM_DISABLE_MEM_LEAK_TESTING
#endif
+// Darwin also has a weird idea of permissions and dates on symlinks:
+// perms are fixed at creation time by your umask, and dates can't be
+// changed. This breaks unit tests if we try to compare these things.
+// See: http://lists.apple.com/archives/darwin-kernel/2006/Dec/msg00057.html
+#ifdef __APPLE__
+ #define PLATFORM_DISABLE_SYMLINK_ATTRIB_COMPARE
+#endif
+
// Find out if credentials on UNIX sockets can be obtained
#ifndef HAVE_GETPEEREID
#if !HAVE_DECL_SO_PEERCRED