diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/cpu/g65816/g65816ds.h | 5 | ||||
-rw-r--r-- | src/devices/cpu/lh5801/5801dasm.h | 4 | ||||
-rw-r--r-- | src/devices/cpu/m37710/m7700ds.h | 4 | ||||
-rw-r--r-- | src/devices/cpu/m68000/m68kcpu.h | 4 | ||||
-rw-r--r-- | src/emu/http.cpp | 4 | ||||
-rw-r--r-- | src/emu/save.h | 4 | ||||
-rw-r--r-- | src/mame/machine/sec.h | 4 | ||||
-rw-r--r-- | src/osd/modules/file/posixptty.cpp | 6 | ||||
-rw-r--r-- | src/osd/modules/font/font_sdl.cpp | 2 | ||||
-rw-r--r-- | src/osd/modules/output/network.cpp | 5 |
10 files changed, 36 insertions, 6 deletions
diff --git a/src/devices/cpu/g65816/g65816ds.h b/src/devices/cpu/g65816/g65816ds.h index 7be656d4bab..9e229c0e676 100644 --- a/src/devices/cpu/g65816/g65816ds.h +++ b/src/devices/cpu/g65816/g65816ds.h @@ -16,6 +16,11 @@ All rights reserved. */ +#ifdef __sun +#undef SEC +#undef op +#endif + class g65816_disassembler : public util::disasm_interface { public: diff --git a/src/devices/cpu/lh5801/5801dasm.h b/src/devices/cpu/lh5801/5801dasm.h index 9a6b66b0c5b..49d3c953680 100644 --- a/src/devices/cpu/lh5801/5801dasm.h +++ b/src/devices/cpu/lh5801/5801dasm.h @@ -10,7 +10,9 @@ #ifndef MAME_CPU_LH5801_5801DASM_H #define MAME_CPU_LH5801_5801DASM_H - +#ifdef __sun +#undef SEC +#endif #pragma once class lh5801_disassembler : public util::disasm_interface diff --git a/src/devices/cpu/m37710/m7700ds.h b/src/devices/cpu/m37710/m7700ds.h index 6a30eb1af61..07bdaf49d48 100644 --- a/src/devices/cpu/m37710/m7700ds.h +++ b/src/devices/cpu/m37710/m7700ds.h @@ -4,7 +4,9 @@ #ifndef __M7700DS_H__ #define __M7700DS_H__ - +#ifdef __sun +#undef SEC +#endif /* Mitsubishi 7700 CPU Emulator v0.10 diff --git a/src/devices/cpu/m68000/m68kcpu.h b/src/devices/cpu/m68000/m68kcpu.h index 753e7b3a952..0326c0f4bd1 100644 --- a/src/devices/cpu/m68000/m68kcpu.h +++ b/src/devices/cpu/m68000/m68kcpu.h @@ -17,11 +17,11 @@ #pragma once -#include <limits.h> - #if defined(__sun__) && defined(__svr4__) #undef REG_SP #undef REG_PC +#else +#include <limits.h> #endif /* ======================================================================== */ diff --git a/src/emu/http.cpp b/src/emu/http.cpp index c6a8bc011f0..3a28fa270c0 100644 --- a/src/emu/http.cpp +++ b/src/emu/http.cpp @@ -7,6 +7,10 @@ http.cpp HTTP server handling ***************************************************************************/ +#ifdef __sun +#define ASIO_DISABLE_DEV_POLL +#define ASIO_HAS_EPOLL +#endif #include "emu.h" #include "server_ws_impl.hpp" diff --git a/src/emu/save.h b/src/emu/save.h index cfdf119a156..66fba6777a7 100644 --- a/src/emu/save.h +++ b/src/emu/save.h @@ -267,7 +267,11 @@ public: // template specializations to enumerate the fundamental atomic types you are allowed to save ALLOW_SAVE_TYPE_AND_ARRAY(char) ALLOW_SAVE_TYPE (bool); // std::vector<bool> may be packed internally +#ifdef __sun +ALLOW_SAVE_TYPE_AND_ARRAY(signed char) +#else ALLOW_SAVE_TYPE_AND_ARRAY(s8) +#endif ALLOW_SAVE_TYPE_AND_ARRAY(u8) ALLOW_SAVE_TYPE_AND_ARRAY(s16) ALLOW_SAVE_TYPE_AND_ARRAY(u16) diff --git a/src/mame/machine/sec.h b/src/mame/machine/sec.h index bd198b0b11a..c324925ac20 100644 --- a/src/mame/machine/sec.h +++ b/src/mame/machine/sec.h @@ -3,6 +3,10 @@ /* commands */ +#ifdef __sun +#undef SEC +#endif + #define SEC_REQUEST_STATUS (0x20) #define SEC_REQUEST_MARKET (0x21) #define SEC_REQEUST_LAST_ERROR (0x22) diff --git a/src/osd/modules/file/posixptty.cpp b/src/osd/modules/file/posixptty.cpp index 00aab42cf44..6e468cf172f 100644 --- a/src/osd/modules/file/posixptty.cpp +++ b/src/osd/modules/file/posixptty.cpp @@ -29,6 +29,10 @@ #include <pty.h> #elif defined(__HAIKU__) #include <bsd/pty.h> +#elif defined(__sun) +#include <sys/types.h> +#include <stropts.h> +#include <sys/conf.h> #endif @@ -112,7 +116,7 @@ osd_file::error posix_open_ptty(std::uint32_t openflags, osd_file::ptr &file, st else if (openflags & OPEN_FLAG_READ) access |= O_RDONLY; else - return error::INVALID_ACCESS; + return osd_file::error::INVALID_ACCESS; int const masterfd = ::posix_openpt(access); if (masterfd < 0) diff --git a/src/osd/modules/font/font_sdl.cpp b/src/osd/modules/font/font_sdl.cpp index 668fd2d5778..62a97d39149 100644 --- a/src/osd/modules/font/font_sdl.cpp +++ b/src/osd/modules/font/font_sdl.cpp @@ -8,7 +8,7 @@ #include "font_module.h" #include "modules/osdmodule.h" -#if defined(SDLMAME_UNIX) && !defined(SDLMAME_MACOSX) && !defined(SDLMAME_SOLARIS) && !defined(SDLMAME_HAIKU) && !defined(SDLMAME_ANDROID) +#if defined(SDLMAME_UNIX) && !defined(SDLMAME_MACOSX) && !defined(SDLMAME_HAIKU) && !defined(SDLMAME_ANDROID) #include "corestr.h" #include "corealloc.h" diff --git a/src/osd/modules/output/network.cpp b/src/osd/modules/output/network.cpp index f4db109c829..e92b009670f 100644 --- a/src/osd/modules/output/network.cpp +++ b/src/osd/modules/output/network.cpp @@ -14,6 +14,11 @@ #include "emu.h" +#ifdef __sun +#define ASIO_DISABLE_DEV_POLL +#define ASIO_HAS_EPOLL +#endif + #include <thread> #include <set> #include "asio.h" |