Author: jonpryor
Date: 2006-11-13 12:05:59 -0500 (Mon, 13 Nov 2006)
New Revision: 67768
Modified:
trunk/mono/support/ChangeLog
trunk/mono/support/mph.h
Log:
* 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).
Modified: trunk/mono/support/ChangeLog
===================================================================
--- trunk/mono/support/ChangeLog 2006-11-13 17:02:17 UTC (rev 67767)
+++ trunk/mono/support/ChangeLog 2006-11-13 17:05:59 UTC (rev 67768)
@@ -1,3 +1,9 @@
+2006-11-13 Jonathan Pryor <[EMAIL PROTECTED]>
+
+ * 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 <[EMAIL PROTECTED]>
* Makefile.am: Revert addition of L_SET et al; this breaks the Win32
build.
Modified: trunk/mono/support/mph.h
===================================================================
--- trunk/mono/support/mph.h 2006-11-13 17:02:17 UTC (rev 67767)
+++ trunk/mono/support/mph.h 2006-11-13 17:05:59 UTC (rev 67768)
@@ -69,6 +69,16 @@
#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;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches