summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/aud.c2
-rw-r--r--hw/aud.h5
-rw-r--r--hw/make.mk1
3 files changed, 7 insertions, 1 deletions
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 <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
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))