From ef229c587156d1557d14cda80f1066aa3968c84b Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Fri, 3 Oct 2003 13:51:20 +0000 Subject: Update Port: emulators/freesci - Update to latest release - Remove dependancy on libpng - Add switches for SDL, GGI and DirectFB support - Use X11 renderer as default - portlint Note: Since ScummVM is in games, this port should probably go to games to. It is not directly an emulator, but an game-data interpreter (just like ScummVM) PR: ports/51731 Submitted by: Ulrich Spoerlein Approved by: maintainer timeout --- games/freesci/files/patch-src::sound::pcmout_oss.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 games/freesci/files/patch-src::sound::pcmout_oss.c (limited to 'games/freesci/files/patch-src::sound::pcmout_oss.c') diff --git a/games/freesci/files/patch-src::sound::pcmout_oss.c b/games/freesci/files/patch-src::sound::pcmout_oss.c new file mode 100644 index 000000000000..41333d03d40b --- /dev/null +++ b/games/freesci/files/patch-src::sound::pcmout_oss.c @@ -0,0 +1,18 @@ +--- src/sound/pcmout_oss.c.orig Thu Feb 20 20:52:48 2003 ++++ src/sound/pcmout_oss.c Thu Feb 20 21:02:06 2003 +@@ -75,6 +75,15 @@ + return -1; + } + ++/* Some OSS don't define the native endian */ ++#ifndef AFMT_S16_NE ++ #if defined __i386__ || defined __alpha__ ++ #define AFMT_S16_NE AFMT_S16_LE ++ #elif defined __mips__ ++ #define AFMT_S16_NE AFMT_S16_BE ++ #endif ++ /* FIXME are these correct? */ ++#endif + i = AFMT_S16_NE; /* Use NATIVE endian format... */ + if (ioctl (oss_fd, SNDCTL_DSP_SETFMT, &i)) { + fprintf(stderr, "[PCM-OSS] Failed to set device output format\n"); -- cgit v1.2.3