From 84254c10d2898fbe7f45934bcaad94a217cc22ab Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 26 Feb 2016 01:34:08 +0100 Subject: Make ALSA input conditional --- src/AlsaInput.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/AlsaInput.cpp') diff --git a/src/AlsaInput.cpp b/src/AlsaInput.cpp index 492ff62..e5fd420 100644 --- a/src/AlsaInput.cpp +++ b/src/AlsaInput.cpp @@ -17,12 +17,13 @@ * ------------------------------------------------------------------- */ +#include "config.h" +#if HAVE_ALSA + +#include "AlsaInput.h" #include #include - #include - -#include "AlsaInput.h" #include using namespace std; @@ -159,3 +160,5 @@ ssize_t AlsaInputDirect::read(uint8_t* buf, size_t length) return (read > 0) ? read * bytes_per_frame : read; } +#endif // HAVE_ALSA + -- cgit v1.2.3