summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Linden <karl.j.linden@gmail.com>2016-02-25 20:40:21 +0100
committerKarl Linden <karl.j.linden@gmail.com>2016-02-25 20:40:21 +0100
commit7bdad4966b29f721c384bdfe6921a1e5c1d84561 (patch)
tree06a40f78b069aab3ac49ccc7ee4de3ce538efd24
parentcf8ccd2e31a51da30837cde79677cfaf43301cd9 (diff)
downloadjack2-7bdad4966b29f721c384bdfe6921a1e5c1d84561.tar.gz
Fix building with libedit.
-rw-r--r--example-clients/transport.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/example-clients/transport.c b/example-clients/transport.c
index fd258d8f..c543b410 100644
--- a/example-clients/transport.c
+++ b/example-clients/transport.c
@@ -31,7 +31,10 @@
#include <jack/jack.h>
#include <jack/transport.h>
-#if !HAVE_READLINE
+/* Use a copy of the readline macro whitespace if it does not exist.
+ * Not all readline compatible libraries supply the whitespace macro
+ * (libedit for example), so pull in the copy in those cases too. */
+#if !HAVE_READLINE || !defined(whitespace)
#define whitespace(c) (((c) == ' ') || ((c) == '\t'))
#endif