Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2006-11-13 20:05:59 +0300
committerJonathan Pryor <jpryor@novell.com>2006-11-13 20:05:59 +0300
commit0d55306d216c05b33d0fdf89d822417eba7cb1da (patch)
treee988d35bfc36be35c4a04a9869c41accbe478df5 /support
parent096b02449674cbd4935660ab3f279a70fb845a59 (diff)
* 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). svn path=/trunk/mono/; revision=67768
Diffstat (limited to 'support')
-rw-r--r--support/ChangeLog6
-rw-r--r--support/mph.h10
2 files changed, 16 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index a20cad85967..d342824cbee 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -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.
diff --git a/support/mph.h b/support/mph.h
index 7c7705e958b..56f83e52b16 100644
--- a/support/mph.h
+++ b/support/mph.h
@@ -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;