summaryrefslogtreecommitdiff
path: root/games/freesci/files/patch-src::sound::pcmout_oss.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/freesci/files/patch-src::sound::pcmout_oss.c')
-rw-r--r--games/freesci/files/patch-src::sound::pcmout_oss.c18
1 files changed, 18 insertions, 0 deletions
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");