Previous 199869 Revisions Next

r34605 Sunday 25th January, 2015 at 21:01:16 UTC by Couriersud
Solaris 11 build support. [Couriersud]
[/trunk]makefile
[src/osd/modules/font]font_sdl.c
[src/osd/sdl]sdl.mak sdlprefix.h sdlptty_unix.c

trunk/makefile
r243116r243117
9898ifeq ($(firstword $(filter Haiku,$(UNAME))),Haiku)
9999TARGETOS = haiku
100100endif
101ifeq ($(firstword $(filter SunOS,$(UNAME))),SunOS)
102TARGETOS = solaris
103SDL_LIBVER = sdl
104endif
101105
102106ifndef TARGETOS
103107$(error Unable to detect TARGETOS from uname -a: $(UNAME))
r243116r243117
114118ifeq ($(firstword $(filter ppc64,$(UNAME))),ppc64)
115119PTR64 = 1
116120endif
121ifeq ($(TARGETOS), solaris)
122ifeq ($(firstword $(filter amd64,$(shell /usr/bin/isainfo -k))),amd64)
123PTR64 = 1
117124endif
125endif
126endif
118127
119128# Autodetect BIGENDIAN
120129# MacOSX
trunk/src/osd/modules/font/font_sdl.c
r243116r243117
66#include "font_module.h"
77#include "modules/osdmodule.h"
88
9#if defined(SDLMAME_UNIX) && (!defined(SDLMAME_MACOSX)) && (!defined(SDLMAME_HAIKU)) && (!defined(SDLMAME_EMSCRIPTEN))
9#if defined(SDLMAME_UNIX) && (!defined(SDLMAME_MACOSX)) && (!defined(SDLMAME_SOLARIS)) && (!defined(SDLMAME_HAIKU)) && (!defined(SDLMAME_EMSCRIPTEN))
1010
1111#if (SDLMAME_SDL2)
1212#include <SDL2/SDL_ttf.h>
trunk/src/osd/sdl/sdl.mak
r243116r243117
246246
247247ifeq ($(TARGETOS),solaris)
248248BASE_TARGETOS = unix
249DEFS += -DNO_AFFINITY_NP -UHAVE_VSNPRINTF -DNO_vsnprintf
249#DEFS += -DNO_AFFINITY_NP -UHAVE_VSNPRINTF -DNO_vsnprintf
250DEFS += -DNO_AFFINITY_NP
250251SYNC_IMPLEMENTATION = tc
251252NO_USE_MIDI = 1
253NO_USE_QTDEBUG = 1
252254endif
253255
254256ifeq ($(TARGETOS),haiku)
r243116r243117
606608LIBS += -lSDL_ttf
607609endif
608610
611# FIXME: should be dealt with elsewhere
609612# libs that Haiku doesn't want but are mandatory on *IX
610613ifneq ($(TARGETOS),haiku)
611BASELIBS += -lm -lutil -lpthread
612LIBS += -lm -lutil -lpthread
614BASELIBS += -lm -lpthread
615LIBS += -lm -lpthread
616ifneq ($(TARGETOS),solaris)
617BASELIBS += -lutil
618LIBS += -lutil
619else
620SUPPORTSM32M64 = 1
621BASELIBS += -lsocket -lnsl
622LIBS += -lsocket -lnsl
613623endif
624endif
614625
626
615627endif # not Mac OS X
616628
617629ifneq (,$(findstring ppc,$(UNAME)))
trunk/src/osd/sdl/sdlprefix.h
r243116r243117
2727
2828#if defined(__sun__) && defined(__svr4__)
2929#define SDLMAME_SOLARIS 1
30#undef _XOPEN_SOURCE
31#undef _XOPEN_VERSION
32#undef _XOPEN_SOURCE_EXTENDED
33#undef _XPG6
34#undef _XPG5
35#undef _XPG4_2
30//#undef _XOPEN_SOURCE
31//#undef _XOPEN_VERSION
32//#undef _XOPEN_SOURCE_EXTENDED
33//#undef _XPG6
34//#undef _XPG5
35//#undef _XPG4_2
3636
37#define _XOPEN_SOURCE
38#define _XOPEN_VERSION 4
39
37//#define _XOPEN_SOURCE
38//#define _XOPEN_VERSION 4
4039#elif defined(__irix__) || defined(__sgi)
4140#define SDLMAME_IRIX 1
4241/* Large file support on IRIX needs _SGI_SOURCE */
trunk/src/osd/sdl/sdlptty_unix.c
r243116r243117
99//
1010//============================================================
1111
12#if (!defined(SDLMAME_SOLARIS) && !(defined(SDLMAME_OS2)))
13
1214#include <sys/types.h>
1315#include <sys/uio.h>
1416#include <unistd.h>
r243116r243117
101103
102104   return FILERR_NONE;
103105}
106
107#else
108#include "sdlfile.h"
109
110const char *sdlfile_ptty_identifier  = "";
111
112file_error sdl_open_ptty(const char *path, UINT32 openflags, osd_file **file, UINT64 *filesize)
113{
114    return FILERR_ACCESS_DENIED;
115}
116
117file_error sdl_read_ptty(osd_file *file, void *buffer, UINT64 offset, UINT32 count, UINT32 *actual)
118{
119    return FILERR_ACCESS_DENIED;
120}
121
122file_error sdl_write_ptty(osd_file *file, const void *buffer, UINT64 offset, UINT32 count, UINT32 *actual)
123{
124    return FILERR_ACCESS_DENIED;
125}
126
127file_error sdl_close_ptty(osd_file *file)
128{
129    return FILERR_ACCESS_DENIED;
130}
131#endif


Previous 199869 Revisions Next


© 1997-2024 The MAME Team