Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2006-11-08 02:27:20 +0300
committerJonathan Pryor <jpryor@novell.com>2006-11-08 02:27:20 +0300
commit7e4c7a64a2bafcbb155976ba9b0b9245b01018d2 (patch)
tree79cd1090bfb7c5c45a1763843f9a0a9ba926d00d /support
parentf62a9b63bee50c11e9a2e98291078024270bf348 (diff)
* 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. svn path=/trunk/mono/; revision=67502
Diffstat (limited to 'support')
-rw-r--r--support/ChangeLog6
-rw-r--r--support/Makefile.am3
-rw-r--r--support/map.c12
3 files changed, 21 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 31db2470669..ca5b5373a9e 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-07 Jonathan Pryor <jonpryor@vt.edu>
+
+ * 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 <jonpryor@vt.edu>
* stdio.c: Some BSDs define clearerr(3) as a macro, so we need to cast
diff --git a/support/Makefile.am b/support/Makefile.am
index 015136550a0..2f1aca0b4ca 100644
--- a/support/Makefile.am
+++ b/support/Makefile.am
@@ -114,6 +114,9 @@ refresh:
--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_ \
diff --git a/support/map.c b/support/map.c
index 2de79065541..fdc6b004fd2 100644
--- a/support/map.c
+++ b/support/map.c
@@ -21,6 +21,18 @@
#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