From b74cf92e1f101412df6071ee7c8bc5ed3fe4485e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Jul 2007 17:31:37 +0000 Subject: Fix building w/o Alsa. git-svn-id: http://svn.drobilla.net/lad/patchage@582 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageCanvas.h | 1 + src/PatchageEvent.cpp | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 #ifdef HAVE_ALSA #include 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(); +#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(); -- cgit v1.2.1