From 5e276db583ba94e8e303c8868df52ffcaa0819a4 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Thu, 21 Jul 2011 21:52:04 +0200 Subject: Fix FTBFS on kFreeBSD --- src/print_volume.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/print_volume.c') diff --git a/src/print_volume.c b/src/print_volume.c index 0eca0c0..2945b1e 100644 --- a/src/print_volume.c +++ b/src/print_volume.c @@ -27,19 +27,17 @@ struct mixer_hdl { }; TAILQ_HEAD(handles_head, mixer_hdl) cached = TAILQ_HEAD_INITIALIZER(cached); -#endif static void free_hdl(struct mixer_hdl *hdl) { free(hdl->device); free(hdl->mixer); free(hdl); } +#endif void print_volume(const char *fmt, const char *device, const char *mixer, int mixer_idx) { /* Printing volume only works with ALSA at the moment */ -#ifndef LINUX - return; -#endif +#ifdef LINUX /* Check if we already opened the mixer and get the handle * from cache if so */ bool found = false; @@ -151,4 +149,5 @@ void print_volume(const char *fmt, const char *device, const char *mixer, int mi walk += strlen("volume"); } } +#endif } -- cgit v1.2.3