summaryrefslogtreecommitdiff
path: root/src/print_volume.c
diff options
context:
space:
mode:
authorThomas Klausner <tk@giga.or.at>2019-07-29 22:46:20 +0200
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2019-07-29 13:46:20 -0700
commit5aec4a5da32e9a1fad1a89f17b10d676d4312895 (patch)
tree58b31dc403b238690e5dd3f6a994b2c7d7320d36 /src/print_volume.c
parente84f9588dfca3023f77fcc7d320c70945d852f9d (diff)
Improve NetBSD port. (#361)
Detect and link against ossaudio. Comment out unused code and functions.
Diffstat (limited to 'src/print_volume.c')
-rw-r--r--src/print_volume.c6
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;