Author: jonpryor
Date: 2006-11-08 10:12:06 -0500 (Wed, 08 Nov 2006)
New Revision: 67536

Modified:
   trunk/mono/support/ChangeLog
   trunk/mono/support/Makefile.am
   trunk/mono/support/map.c
   trunk/mono/support/mph.h
Log:
        * Makefile.am: Revert addition of L_SET et al; this breaks the Win32 
build.
        * map.c: Revert addition of L_SET et al; this breaks the Win32 build.
        * mph.h: Add macros for L_SET, L_INCR, and L_XTND for non-Win32 
platforms.


Modified: trunk/mono/support/ChangeLog
===================================================================
--- trunk/mono/support/ChangeLog        2006-11-08 14:52:43 UTC (rev 67535)
+++ trunk/mono/support/ChangeLog        2006-11-08 15:12:06 UTC (rev 67536)
@@ -1,3 +1,9 @@
+2006-11-08  Jonathan Pryor  <[EMAIL PROTECTED]>
+
+       * Makefile.am: Revert addition of L_SET et al; this breaks the Win32 
build.
+       * map.c: Revert addition of L_SET et al; this breaks the Win32 build.
+       * mph.h: Add macros for L_SET, L_INCR, and L_XTND for non-Win32 
platforms.
+
 2006-11-07  Jonathan Pryor  <[EMAIL PROTECTED]>
 
        * Makefile.am: Add implementation macros for L_SET, L_INCR, and L_XTND.

Modified: trunk/mono/support/Makefile.am
===================================================================
--- trunk/mono/support/Makefile.am      2006-11-08 14:52:43 UTC (rev 67535)
+++ trunk/mono/support/Makefile.am      2006-11-08 15:12:06 UTC (rev 67536)
@@ -114,9 +114,6 @@
        --impl-header="<dirent.h>"                            \
        --impl-header="<utime.h>"                             \
        --impl-header="\"mph.h\""                             \
-       --impl-macro="L_SET=SEEK_SET"                         \
-       --impl-macro="L_INCR=SEEK_CUR"                        \
-       --impl-macro="L_XTND=SEEK_END"                        \
        --rename-member=st_atime=st_atime_                    \
        --rename-member=st_ctime=st_ctime_                    \
        --rename-member=st_mtime=st_mtime_                    \

Modified: trunk/mono/support/map.c
===================================================================
--- trunk/mono/support/map.c    2006-11-08 14:52:43 UTC (rev 67535)
+++ trunk/mono/support/map.c    2006-11-08 15:12:06 UTC (rev 67536)
@@ -21,19 +21,7 @@
 #define _XOPEN_SOURCE
 #endif /* ndef _XOPEN_SOURCE */
 
-#ifndef L_SET
-#define L_SET SEEK_SET
-#endif /* ndef L_SET */
 
-#ifndef L_INCR
-#define L_INCR SEEK_CUR
-#endif /* ndef L_INCR */
-
-#ifndef L_XTND
-#define L_XTND SEEK_END
-#endif /* ndef L_XTND */
-
-
 /*
  * Implementation Includes
  */

Modified: trunk/mono/support/mph.h
===================================================================
--- trunk/mono/support/mph.h    2006-11-08 14:52:43 UTC (rev 67535)
+++ trunk/mono/support/mph.h    2006-11-08 15:12:06 UTC (rev 67536)
@@ -49,6 +49,28 @@
 #define EOVERFLOW 75
 #endif /* def PLATFORM_WIN32 && ndef EOVERFLOW */
 
+#if !defined (PLATFORM_WIN32)
+
+/* 
+ * Solaris doesn't define these BSD values, and if they're not present then
+ * map.c:Mono_Posix_FromSeekFlags() breaks badly; see:
+ * http://bugzilla.gnome.org/show_bug.cgi?id=370081
+ */
+
+#ifndef L_SET
+#define L_SET SEEK_SET
+#endif /* ndef L_SET */
+
+#ifndef L_INCR
+#define L_INCR SEEK_CUR
+#endif /* ndef L_INCR */
+
+#ifndef L_XTND
+#define L_XTND SEEK_END
+#endif /* ndef L_XTND */
+
+#endif /* ndef PLATFORM_WIN32 */
+
 typedef    gint64 mph_blkcnt_t;
 typedef    gint64 mph_blksize_t;
 typedef   guint64 mph_dev_t;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to