aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libdv/files/patch-playdv:oss.c
blob: c95592086a0835607dd48f8de01d57b6a37d3a6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- playdv/oss.c.orig	Sun Nov 18 21:50:24 2001
+++ playdv/oss.c	Sun Nov 18 21:53:48 2001
@@ -36,6 +36,19 @@
 
 #include "oss.h"
 
+#ifndef O_LARGEFILE
+# define O_LARGEFILE 0
+#endif
+
+#ifndef AFMT_S16_NE
+# include <machine/endian.h>
+# if BYTE_ORDER == LITTLE_ENDIAN
+#  define AFMT_S16_NE AFMT_S16_LE
+# else
+#  define AFMT_S16_NE AFMT_S16_BE
+# endif
+#endif
+
 static const char *default_device = "/dev/dsp";
 
 dv_oss_t *