patches/mono-02-seek-macros.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 443 601cee14bf07
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

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_                    \