OpenIndiana and Solaris port

This commit is contained in:
Ulrich Wilkens
2014-10-28 19:46:43 +01:00
committed by Jon Trulson
parent 42e891d9e7
commit 01d6c363fa
296 changed files with 1049 additions and 1091 deletions

View File

@@ -8,7 +8,7 @@ XCOMM $TOG: Imakefile /main/10 1998/11/09 18:30:37 mgreess $
#define LibCreate NO
#define CplusplusSource YES
DEPEND_DEFINES = $(CXXDEPENDINCLUDES)
DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
#include <Threads.tmpl>

View File

@@ -8,7 +8,7 @@ XCOMM $TOG: Imakefile /main/8 1998/08/05 13:25:32 mgreess $
#define LibCreate NO
#define CplusplusSource YES
DEPEND_DEFINES = $(CXXDEPENDINCLUDES)
DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
#include <Threads.tmpl>

View File

@@ -578,7 +578,7 @@ RFCMailBox::alterPageMappingAdvice(MapRegion *map, int advice)
for (int m = 0; m < me; m++) {
MapRegion *map_t = _mappings[m];
#if !defined(USL) && !defined(__uxp__) && !defined(linux)
#if !defined(USL) && !defined(__uxp__) && !defined(linux) && !defined(sun)
// no madvise on these systems
if (map_t == map || map == (MapRegion *)-1)
madvise(map_t->map_region, (size_t) map_t->map_size, advice);
@@ -2261,7 +2261,7 @@ RFCMailBox::parseFile(DtMailEnv & error, int map_slot)
//
unsigned long pagelimit = _mappings[map_slot]->map_size;
#if !defined(USL) && !defined(__uxp__) && !defined(linux)
#if !defined(USL) && !defined(__uxp__) && !defined(linux) && !defined(sun)
// no madvise; dont use optimization
madvise(
(char *)_mappings[map_slot]->map_region,
@@ -2352,7 +2352,7 @@ RFCMailBox::parseFile(DtMailEnv & error, int map_slot)
// At this point we most likely will see random behavior. We will
// tell the kernel to pull in the minimum number of extra pages.
//
#if !defined(USL) && !defined(__uxp__) && !defined(linux)
#if !defined(USL) && !defined(__uxp__) && !defined(linux) && !defined(sun)
// no madvise; dont use optimization
madvise(
(char *)_mappings[map_slot]->map_region,