Update of /cvsroot/firebird/interbase/jrd
In directory usw-pr-cvs1:/tmp/cvs-serv28531/jrd
Modified Files:
gds.c
Log Message:
for Solaris 8
Index: gds.c
===================================================================
RCS file: /cvsroot/firebird/interbase/jrd/gds.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -U3 -r1.7 -r1.8
--- gds.c 2001/05/24 04:11:11 1.7
+++ gds.c 2001/06/04 14:15:42 1.8
@@ -3477,12 +3477,15 @@
#endif
#ifdef UNIX
-#ifdef MAP_ANONYMOUS
+#if (defined MAP_ANONYMOUS & !defined SOLARIS)
+/* Becouse in Solaris 8 MAP_ANONYMOUS is defined now
+against of previos sun releases */
+
memory = mmap (NULL, size, (PROT_READ | PROT_WRITE),
(MAP_ANONYMOUS |
#ifndef LINUX
-/* In LINUX, there is no such thing as MAP_VARIABLE. Hence, it gives
+/* In LINUX and Solaris are is no such thing as MAP_VARIABLE. Hence, it gives
compilation error. The equivalent functionality is default,
if you do not specify MAP_FIXED */
MAP_VARIABLE |
|