summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/sdlptty_unix.c
diff options
context:
space:
mode:
author Wilbert Pol <wilbert@jdg.info>2012-04-09 19:55:43 +0000
committer Wilbert Pol <wilbert@jdg.info>2012-04-09 19:55:43 +0000
commit6711559e87f917df9f789f56722d987b3ba78d50 (patch)
tree8b75bd484d7c264b89b7f60cd156b8b33a2ee952 /src/osd/sdl/sdlptty_unix.c
parent49f47372a86a4cb9de3ef74b0010c0f1465cf9e1 (diff)
SDL: Got rid of some code duplication between the _unix and _macosx implementations for sdlptty and sdlmisc. (nw)
Diffstat (limited to 'src/osd/sdl/sdlptty_unix.c')
-rw-r--r--src/osd/sdl/sdlptty_unix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/osd/sdl/sdlptty_unix.c b/src/osd/sdl/sdlptty_unix.c
index 3d7262dbed3..778f1aefc0c 100644
--- a/src/osd/sdl/sdlptty_unix.c
+++ b/src/osd/sdl/sdlptty_unix.c
@@ -17,7 +17,7 @@
#if defined(SDLMAME_FREEBSD) || defined(SDLMAME_DRAGONFLY)
# include <termios.h>
# include <libutil.h>
-#elif defined(SDLMAME_NETBSD)
+#elif defined(SDLMAME_NETBSD) || defined(SDLMAME_MACOSX)
# include <util.h>
#elif defined(SDLMAME_OPENBSD)
# include <termios.h>
@@ -28,7 +28,11 @@
#include "sdlfile.h"
+#if defined(SDLMAME_MACOSX)
+const char *sdlfile_ptty_identifier = "/dev/pty";
+#else
const char *sdlfile_ptty_identifier = "/dev/pts";
+#endif
file_error sdl_open_ptty(const char *path, UINT32 openflags, osd_file **file, UINT64 *filesize)
{