src/audio/dma/SDL_dmaaudio.c
changeset 94 ae6e6b73333f
parent 92 dab667b72ccc
child 252 e8157fcb3114
equal deleted inserted replaced
93:fc774f445e10 94:ae6e6b73333f
    37 #include <sys/types.h>
    37 #include <sys/types.h>
    38 #include <sys/time.h>
    38 #include <sys/time.h>
    39 #include <sys/ioctl.h>
    39 #include <sys/ioctl.h>
    40 #include <sys/stat.h>
    40 #include <sys/stat.h>
    41 #include <sys/mman.h>
    41 #include <sys/mman.h>
       
    42 #ifdef OSS_USE_SOUNDCARD_H
       
    43 /* This is installed on some systems */
       
    44 #include <soundcard.h>
       
    45 #else
       
    46 /* This is recommended by OSS */
    42 #include <sys/soundcard.h>
    47 #include <sys/soundcard.h>
       
    48 #endif
    43 
    49 
    44 #ifndef MAP_FAILED
    50 #ifndef MAP_FAILED
    45 #define MAP_FAILED	((Uint8 *)-1)
    51 #define MAP_FAILED	((Uint8 *)-1)
    46 #endif
    52 #endif
    47 
    53