From 6711559e87f917df9f789f56722d987b3ba78d50 Mon Sep 17 00:00:00 2001 From: Wilbert Pol Date: Mon, 9 Apr 2012 19:55:43 +0000 Subject: SDL: Got rid of some code duplication between the _unix and _macosx implementations for sdlptty and sdlmisc. (nw) --- src/osd/sdl/sdlptty_unix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/osd/sdl/sdlptty_unix.c') 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 # include -#elif defined(SDLMAME_NETBSD) +#elif defined(SDLMAME_NETBSD) || defined(SDLMAME_MACOSX) # include #elif defined(SDLMAME_OPENBSD) # include @@ -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) { -- cgit v1.2.3-70-g09d2