trunk/makefile
| r243116 | r243117 | |
| 98 | 98 | ifeq ($(firstword $(filter Haiku,$(UNAME))),Haiku) |
| 99 | 99 | TARGETOS = haiku |
| 100 | 100 | endif |
| 101 | ifeq ($(firstword $(filter SunOS,$(UNAME))),SunOS) |
| 102 | TARGETOS = solaris |
| 103 | SDL_LIBVER = sdl |
| 104 | endif |
| 101 | 105 | |
| 102 | 106 | ifndef TARGETOS |
| 103 | 107 | $(error Unable to detect TARGETOS from uname -a: $(UNAME)) |
| r243116 | r243117 | |
| 114 | 118 | ifeq ($(firstword $(filter ppc64,$(UNAME))),ppc64) |
| 115 | 119 | PTR64 = 1 |
| 116 | 120 | endif |
| 121 | ifeq ($(TARGETOS), solaris) |
| 122 | ifeq ($(firstword $(filter amd64,$(shell /usr/bin/isainfo -k))),amd64) |
| 123 | PTR64 = 1 |
| 117 | 124 | endif |
| 125 | endif |
| 126 | endif |
| 118 | 127 | |
| 119 | 128 | # Autodetect BIGENDIAN |
| 120 | 129 | # MacOSX |
trunk/src/osd/sdl/sdl.mak
| r243116 | r243117 | |
| 246 | 246 | |
| 247 | 247 | ifeq ($(TARGETOS),solaris) |
| 248 | 248 | BASE_TARGETOS = unix |
| 249 | | DEFS += -DNO_AFFINITY_NP -UHAVE_VSNPRINTF -DNO_vsnprintf |
| 249 | #DEFS += -DNO_AFFINITY_NP -UHAVE_VSNPRINTF -DNO_vsnprintf |
| 250 | DEFS += -DNO_AFFINITY_NP |
| 250 | 251 | SYNC_IMPLEMENTATION = tc |
| 251 | 252 | NO_USE_MIDI = 1 |
| 253 | NO_USE_QTDEBUG = 1 |
| 252 | 254 | endif |
| 253 | 255 | |
| 254 | 256 | ifeq ($(TARGETOS),haiku) |
| r243116 | r243117 | |
| 606 | 608 | LIBS += -lSDL_ttf |
| 607 | 609 | endif |
| 608 | 610 | |
| 611 | # FIXME: should be dealt with elsewhere |
| 609 | 612 | # libs that Haiku doesn't want but are mandatory on *IX |
| 610 | 613 | ifneq ($(TARGETOS),haiku) |
| 611 | | BASELIBS += -lm -lutil -lpthread |
| 612 | | LIBS += -lm -lutil -lpthread |
| 614 | BASELIBS += -lm -lpthread |
| 615 | LIBS += -lm -lpthread |
| 616 | ifneq ($(TARGETOS),solaris) |
| 617 | BASELIBS += -lutil |
| 618 | LIBS += -lutil |
| 619 | else |
| 620 | SUPPORTSM32M64 = 1 |
| 621 | BASELIBS += -lsocket -lnsl |
| 622 | LIBS += -lsocket -lnsl |
| 613 | 623 | endif |
| 624 | endif |
| 614 | 625 | |
| 626 | |
| 615 | 627 | endif # not Mac OS X |
| 616 | 628 | |
| 617 | 629 | ifneq (,$(findstring ppc,$(UNAME))) |
trunk/src/osd/sdl/sdlptty_unix.c
| r243116 | r243117 | |
| 9 | 9 | // |
| 10 | 10 | //============================================================ |
| 11 | 11 | |
| 12 | #if (!defined(SDLMAME_SOLARIS) && !(defined(SDLMAME_OS2))) |
| 13 | |
| 12 | 14 | #include <sys/types.h> |
| 13 | 15 | #include <sys/uio.h> |
| 14 | 16 | #include <unistd.h> |
| r243116 | r243117 | |
| 101 | 103 | |
| 102 | 104 | return FILERR_NONE; |
| 103 | 105 | } |
| 106 | |
| 107 | #else |
| 108 | #include "sdlfile.h" |
| 109 | |
| 110 | const char *sdlfile_ptty_identifier = ""; |
| 111 | |
| 112 | file_error sdl_open_ptty(const char *path, UINT32 openflags, osd_file **file, UINT64 *filesize) |
| 113 | { |
| 114 | return FILERR_ACCESS_DENIED; |
| 115 | } |
| 116 | |
| 117 | file_error sdl_read_ptty(osd_file *file, void *buffer, UINT64 offset, UINT32 count, UINT32 *actual) |
| 118 | { |
| 119 | return FILERR_ACCESS_DENIED; |
| 120 | } |
| 121 | |
| 122 | file_error sdl_write_ptty(osd_file *file, const void *buffer, UINT64 offset, UINT32 count, UINT32 *actual) |
| 123 | { |
| 124 | return FILERR_ACCESS_DENIED; |
| 125 | } |
| 126 | |
| 127 | file_error sdl_close_ptty(osd_file *file) |
| 128 | { |
| 129 | return FILERR_ACCESS_DENIED; |
| 130 | } |
| 131 | #endif |