diff options
Diffstat (limited to 'src/print_volume.c')
-rw-r--r-- | src/print_volume.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/print_volume.c b/src/print_volume.c index 7364d47..575024a 100644 --- a/src/print_volume.c +++ b/src/print_volume.c @@ -15,13 +15,13 @@ #include <math.h> #endif -#if defined(__FreeBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) #include <fcntl.h> #include <unistd.h> #include <sys/soundcard.h> #endif -#ifdef __OpenBSD__ +#if defined(__OpenBSD__) #include <fcntl.h> #include <unistd.h> #include <sys/audioio.h> @@ -248,7 +248,7 @@ void print_volume(yajl_gen json_gen, char *buffer, const char *fmt, const char * snd_mixer_selem_id_free(sid); #endif -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) char *mixerpath; char defaultmixer[] = "/dev/mixer"; int mixfd, vol, devmask = 0; |