401
|
1 |
From http://bugzilla.gnome.org/show_bug.cgi?id=370081
|
|
2 |
Applied upstream in later Mono 1.2 releases.
|
443
|
3 |
Index: mono-1.2/support/map.c
|
401
|
4 |
===================================================================
|
443
|
5 |
--- mono-1.2/support/map.c (revision 67251)
|
|
6 |
+++ mono-1.2/support/map.c (working copy)
|
401
|
7 |
@@ -21,7 +21,19 @@
|
|
8 |
#define _XOPEN_SOURCE
|
|
9 |
#endif /* ndef _XOPEN_SOURCE */
|
|
10 |
|
|
11 |
+#ifndef L_SET
|
|
12 |
+#define L_SET SEEK_SET
|
|
13 |
+#endif /* ndef L_SET */
|
|
14 |
|
|
15 |
+#ifndef L_INCR
|
|
16 |
+#define L_INCR SEEK_CUR
|
|
17 |
+#endif /* ndef L_INCR */
|
|
18 |
+
|
|
19 |
+#ifndef L_XTND
|
|
20 |
+#define L_XTND SEEK_END
|
|
21 |
+#endif /* ndef L_XTND */
|
|
22 |
+
|
|
23 |
+
|
|
24 |
/*
|
|
25 |
* Implementation Includes
|
|
26 |
*/
|
|
27 |
Index: Makefile.am
|
|
28 |
===================================================================
|
443
|
29 |
--- mono-1.2/support/Makefile.am (revision 67251)
|
|
30 |
+++ mono-1.2/support/Makefile.am (working copy)
|
401
|
31 |
@@ -114,6 +114,9 @@
|
|
32 |
--impl-header="<dirent.h>" \
|
|
33 |
--impl-header="<utime.h>" \
|
|
34 |
--impl-header="\"mph.h\"" \
|
|
35 |
+ --impl-macro="L_SET=SEEK_SET" \
|
|
36 |
+ --impl-macro="L_INCR=SEEK_CUR" \
|
|
37 |
+ --impl-macro="L_XTND=SEEK_END" \
|
|
38 |
--rename-member=st_atime=st_atime_ \
|
|
39 |
--rename-member=st_ctime=st_ctime_ \
|
|
40 |
--rename-member=st_mtime=st_mtime_ \
|