Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2160
Modified Files:
Tag: MonetDB_1-20
gdk.mx
Log Message:
Not all systems define the S_I* symbols.
Index: gdk.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk.mx,v
retrieving revision 1.238.2.2
retrieving revision 1.238.2.3
diff -u -d -r1.238.2.2 -r1.238.2.3
--- gdk.mx 1 Dec 2007 15:06:56 -0000 1.238.2.2
+++ gdk.mx 3 Dec 2007 10:44:59 -0000 1.238.2.3
@@ -2318,7 +2318,17 @@
#define strdup _strdup
#endif
-#define MONETDB_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
+#ifndef S_IRUSR
+/* if one doesn't exist, presumably they all don't exist */
+#define S_IRUSR 0000400 /* read permission, owner */
+#define S_IWUSR 0000200 /* write permission, owner */
+#define S_IRGRP 0000040 /* read permission, group */
+#define S_IWGRP 0000020 /* write permission, grougroup */
+#define S_IROTH 0000004 /* read permission, other */
+#define S_IWOTH 0000002 /* write permission, other */
+#endif
+
+#define MONETDB_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH |
S_IWOTH)
#define BBP_BATMASK 511
#define BBP_THREADMASK 63
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins