Author: jonpryor
Date: 2006-11-07 20:02:15 -0500 (Tue, 07 Nov 2006)
New Revision: 67505
Modified:
branches/mono-1-2/mono/support/ChangeLog
branches/mono-1-2/mono/support/Makefile.am
branches/mono-1-2/mono/support/map.c
Log:
* Makefile.am: Add implementation macros for L_SET, L_INCR, and L_XTND.
* map.c: Make sure that L_SET, L_INCR, and L_XTND are defined. Lets
Mono_Posix_FromSeekFlags() work on Solaris, fixing Gnome Bugzilla
370081.
Modified: branches/mono-1-2/mono/support/ChangeLog
===================================================================
--- branches/mono-1-2/mono/support/ChangeLog 2006-11-07 23:55:31 UTC (rev
67504)
+++ branches/mono-1-2/mono/support/ChangeLog 2006-11-08 01:02:15 UTC (rev
67505)
@@ -1,3 +1,9 @@
+2006-11-07 Jonathan Pryor <[EMAIL PROTECTED]>
+
+ * Makefile.am: Add implementation macros for L_SET, L_INCR, and L_XTND.
+ * map.c: Make sure that L_SET, L_INCR, and L_XTND are defined. Lets
+ Mono_Posix_FromSeekFlags() work on Solaris, fixing Gnome Bugzilla
370081.
+
2006-11-01 Jonathan Pryor <[EMAIL PROTECTED]>
* stdio.c: Some BSDs define clearerr(3) as a macro, so we need to cast
Modified: branches/mono-1-2/mono/support/Makefile.am
===================================================================
--- branches/mono-1-2/mono/support/Makefile.am 2006-11-07 23:55:31 UTC (rev
67504)
+++ branches/mono-1-2/mono/support/Makefile.am 2006-11-08 01:02:15 UTC (rev
67505)
@@ -114,6 +114,9 @@
--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: branches/mono-1-2/mono/support/map.c
===================================================================
--- branches/mono-1-2/mono/support/map.c 2006-11-07 23:55:31 UTC (rev
67504)
+++ branches/mono-1-2/mono/support/map.c 2006-11-08 01:02:15 UTC (rev
67505)
@@ -21,7 +21,19 @@
#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
*/
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches