patches/mono-02-seek-macros.diff
author trisk
Mon, 03 Sep 2007 04:36:16 +0000
changeset 443 601cee14bf07
parent 401 4db691606b3c
permissions -rw-r--r--
2007-09-03 Albert Lee <[email protected]> * SFEgecko-sharp.spec: Update dependencies * SFEgtk-sharp.spec: Bump to 2.10.2 * SFEgtksourceview-sharp.spec: Bump to 0.11 * SFEmono-addins.spec: *NEW* Mono.Addins - a framework for creating extensible applications and add-ins * SFEmono.spec: Bump to 1.2.5, unbreak patches * SFEmonodoc.spec: Bump to 1.2.5 * patches/mono-01-solaris.diff: Update patch * patches/mono-02-seek-macros.diff: Make patch apply properly

From http://bugzilla.gnome.org/show_bug.cgi?id=370081
Applied upstream in later Mono 1.2 releases.
Index: mono-1.2/support/map.c
===================================================================
--- mono-1.2/support/map.c	(revision 67251)
+++ mono-1.2/support/map.c	(working copy)
@@ -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
  */
Index: Makefile.am
===================================================================
--- mono-1.2/support/Makefile.am	(revision 67251)
+++ mono-1.2/support/Makefile.am	(working copy)
@@ -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_                    \