diff options
author | FreeArtMan <dos21h@gmail.com> | 2015-12-21 18:32:50 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2015-12-21 18:32:50 +0000 |
commit | 8900b3c75142c9701657f20b307d70f106cc3697 (patch) | |
tree | 2163fb380a5f66ebe2962a7dd99ee546419bb3d4 /hw | |
parent | 9381ae971066a42ad00def424c29370ced09eb60 (diff) | |
download | radiola-8900b3c75142c9701657f20b307d70f106cc3697.tar.gz radiola-8900b3c75142c9701657f20b307d70f106cc3697.zip |
Add NetBSD support files and config_bsd.h to be compatible with NetBSD
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)) |