@ -45,9 +45,9 @@
# endif
/*
* Only compile this AudioIO class if we ' re on Solaris
* Only compile this AudioIO class if we ' re on Solaris or NetBSD
*/
# if def USE_SOLARIS
# if defined(__sun) || defined(__NetBSD__)
# include <sys/types.h>
# include <sys/ioctl.h>
@ -55,8 +55,10 @@
# include <sys/stat.h>
# include <sys/audioio.h>
# ifdef __sun
# include <stropts.h>
# include <sys/conf.h>
# endif
# include <assert.h>
# include <errno.h>
@ -73,6 +75,10 @@
# include "iomanager.h"
# include "dispatcher.h"
# ifdef __NetBSD__
typedef u_int uint_t ;
# endif
// This looks like the maximum buffer size according to the sys/audio*.h
// files on Solaris7
# define SUN_MAX_BUFFER_SIZE (65536)
@ -439,4 +445,4 @@ int AudioIOSun::write(void *buffer, int size)
return size ;
}
# endif /* USE_SOLARIS */
# endif /* defined(__sun) || defined(__NetBSD__) */