summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PatchageCanvas.h1
-rw-r--r--src/PatchageEvent.cpp6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/PatchageCanvas.h b/src/PatchageCanvas.h
index fe91a34..96e8912 100644
--- a/src/PatchageCanvas.h
+++ b/src/PatchageCanvas.h
@@ -18,6 +18,7 @@
#ifndef PATCHAGECANVAS_H
#define PATCHAGECANVAS_H
+#include "../config.h"
#include <string>
#ifdef HAVE_ALSA
#include <alsa/asoundlib.h>
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp
index 0d46c41..9450770 100644
--- a/src/PatchageEvent.cpp
+++ b/src/PatchageEvent.cpp
@@ -15,6 +15,7 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#include "../config.h"
#include "raul/SharedPtr.h"
#include "Patchage.h"
#include "PatchageCanvas.h"
@@ -29,9 +30,12 @@ PatchageEvent::find_port(const Patchage* patchage, const PortRef& ref)
if (ref.type == PortRef::NULL_PORT_REF)
return boost::shared_ptr<PatchagePort>();
+#ifdef HAVE_ALSA
if (ref.type == PortRef::ALSA_ADDR) {
return patchage->canvas()->find_port(&ref.id.alsa_addr);
- } else {
+ } else
+#endif
+ {
if (!patchage->jack_driver()->client())
return boost::shared_ptr<PatchagePort>();