* mph.h: Add macro for XATTR_AUTO, so that XattrFlags mapping works (as
authorJonathan Pryor <jpryor@novell.com>
Mon, 13 Nov 2006 17:05:59 +0000 (17:05 -0000)
committerJonathan Pryor <jpryor@novell.com>
Mon, 13 Nov 2006 17:05:59 +0000 (17:05 -0000)
  XATTR_AUTO is a value which frequently isn't definedy by any OS, yet it
  has the value 0, a default value which is supported by most OS's).

svn path=/trunk/mono/; revision=67768

support/ChangeLog
support/mph.h

index a20cad85967c864699a0026515afc2439ebc6c02..d342824cbee3d5eb90c28103bd974ab5e3719402 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-13  Jonathan Pryor  <jonpryor@vt.edu>
+
+       * mph.h: Add macro for XATTR_AUTO, so that XattrFlags mapping works (as
+         XATTR_AUTO is a value which frequently isn't definedy by any OS, yet it
+         has the value 0, a default value which is supported by most OS's).
+
 2006-11-08  Jonathan Pryor  <jonpryor@vt.edu>
 
        * Makefile.am: Revert addition of L_SET et al; this breaks the Win32 build.
index 7c7705e958b991b0b6e4914531aa09e443f7a9d6..56f83e52b16e6c832bab0b8ec843fd640c2b3abb 100644 (file)
 #define L_XTND SEEK_END
 #endif /* ndef L_XTND */
 
+/*
+ * XATTR_AUTO is a synonym for 0 within XattrFlags, but most systems don't
+ * define it.  map.c doesn't know that, though, so we ensure that it's defined
+ * so that the value 0 round-trips through MonoPosixHelper.
+ */
+
+#ifndef XATTR_AUTO
+#define XATTR_AUTO 0
+#endif /* ndef XATTR_AUTO */
+
 #endif /* ndef PLATFORM_WIN32 */
 
 typedef    gint64 mph_blkcnt_t;