1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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

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

View file

@ -70,7 +70,7 @@
#include <assert.h>
#if !defined(linux) && !defined(CSRG_BASED)
extern forceUpdate( Widget );
extern void forceUpdate( Widget );
#endif
InterruptibleCmd::InterruptibleCmd ( char *name, char *label, int active ) :

View file

@ -1,7 +1,7 @@
XCOMM $TOG: Imakefile /main/25 1998/02/17 15:18:16 mgreess $
#define CplusplusSource YES
DEPEND_DEFINES = $(CXXDEPENDINCLUDES)
DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB)
INCLUDES = -I. -I../include -I../include/MotifApp \

View file

@ -1,7 +1,7 @@
XCOMM $TOG: Imakefile /main/15 1998/08/05 13:24:40 mgreess $
#define CplusplusSource YES
DEPEND_DEFINES = $(CXXDEPENDINCLUDES)
DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB)
INCLUDES = -I. -I../include -I../../dtcompat -I../../../. -I$(CDELIBSRC)
@ -37,7 +37,7 @@ EXTRA_CCOPTIONS += -DSPRO_V2
EXTRA_C++OPTIONS = +p +w $(SPRO_V3_OPTIONS)
MT_LIBS = -i $(C++_LIB) -lm -lw -lc
SYS_LIBRARIES = -lintl -lnsl $(MT_LIBS) -lC
SYS_LIBRARIES = -lintl -lnsl $(MT_LIBS)
#endif /* SunArchitecture */
SRCS = main.C message.C mailbox.C utils.C

View file

@ -26,6 +26,9 @@
#include <stdio.h>
#include <stdarg.h>
#if defined(sun)
#include <iconv.h>
#endif
#include <sys/stat.h>
/*#include <nl_types.h>*/
#include <DtMail/DtMailError.hh>
@ -893,7 +896,7 @@ class DtMail {
void * _cb_data;
void * _obj_mutex;
};
private:
friend class MailBox;
@ -911,4 +914,13 @@ friend class Session;
DTMailError_t minor_code);
};
#if defined(sun)
template <typename T>
size_t iconv (iconv_t i, const T inbuf, size_t* inleft,
char** outbuf, size_t* outleft)
{
return iconv(i, const_cast<T>(inbuf), inleft, outbuf, outleft);
};
#endif
#endif

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,