From 5aec4a5da32e9a1fad1a89f17b10d676d4312895 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 29 Jul 2019 22:46:20 +0200 Subject: Improve NetBSD port. (#361) Detect and link against ossaudio. Comment out unused code and functions. --- src/print_volume.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/print_volume.c') 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 #endif -#if defined(__FreeBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) #include #include #include #endif -#ifdef __OpenBSD__ +#if defined(__OpenBSD__) #include #include #include @@ -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; -- cgit v1.2.3