diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/aud.c | 2 | ||||
-rw-r--r-- | hw/aud.h | 5 | ||||
-rw-r--r-- | hw/make.mk | 1 |
3 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,6 @@ #include "aud.h" +#if defined(OS_LINUX) //harc-copy from aplay.c static void device_list(void) int audio_get_devices() { @@ -73,3 +74,4 @@ int audio_get_devices() } return 0; } +#endif @@ -1,11 +1,14 @@ #ifndef __RADIOLA_AUD_H #define __RADIOLA_AUD_H +#include "../config.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> -#include <alsa/asoundlib.h> +#if defined(OS_LINUX) +#include <alsa/asoundlib.h> +#endif int audio_get_devices(); #endif
\ No newline at end of file @@ -2,6 +2,7 @@ DIR_HW = hw/ SOURCES_HW += hw/aud.c hw/hw.c hw/hw_eeprom.c hw/sdr.c OBJECTS_HW += $(SOURCES_HW:.c=.o) LDFLAGS += -lrtlsdr -lasound +LDFLAGS_BSD += -lrtlsdr OBJECTS_DIR_HW += $(subst $(DIR_HW),$(BUILD_DIR)$(DIR_HW),$(OBJECTS_HW)) |