From 8900b3c75142c9701657f20b307d70f106cc3697 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Mon, 21 Dec 2015 18:32:50 +0000 Subject: Add NetBSD support files and config_bsd.h to be compatible with NetBSD --- hw/aud.c | 2 ++ hw/aud.h | 5 ++++- hw/make.mk | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/aud.c b/hw/aud.c index a1379c6..4c51dcc 100644 --- a/hw/aud.c +++ b/hw/aud.c @@ -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 diff --git a/hw/aud.h b/hw/aud.h index 500fe18..396c27d 100644 --- a/hw/aud.h +++ b/hw/aud.h @@ -1,11 +1,14 @@ #ifndef __RADIOLA_AUD_H #define __RADIOLA_AUD_H +#include "../config.h" #include #include #include -#include +#if defined(OS_LINUX) +#include +#endif int audio_get_devices(); #endif \ No newline at end of file diff --git a/hw/make.mk b/hw/make.mk index 67860a2..102341d 100644 --- a/hw/make.mk +++ b/hw/make.mk @@ -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)) -- cgit v1.2.3