aboutsummaryrefslogtreecommitdiffstats
path: root/audio/vsound/files/patch-vsound.c
blob: e24a8aebd4f9050c366170bb84f3003ed73396c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- vsound.c.orig   2004-07-10 21:29:33 UTC
+++ vsound.c
@@ -73,11 +73,11 @@ typedef int request_t;
 /*------------------------------------------------------------------------------
 ** Macros to handle big/little endian issues.
 */
-#if HAVE_ENDIAN_H
+#ifdef HAVE_ENDIAN_H
    /* This is the best way to do it. Unfortunately Sparc Solaris (and
    ** possibly others) don't have <endian.h>
    */
-   #include    <endian.h>
+   #include    <sys/endian.h>
    #if (__BYTE_ORDER == __LITTLE_ENDIAN)
        #define CPU_IS_LITTLE_ENDIAN        1
        #define CPU_IS_BIG_ENDIAN           0
@@ -210,7 +210,7 @@ int open (const char *pathname, int flag
    dsp_init () ;
 
    va_start (args, flags) ;
-   mode = va_arg (args, mode_t) ;
+   mode = va_arg (args, int) ;
    va_end (args) ;
 
    if (strcmp (pathname, "/dev/dsp"))