From 7bdad4966b29f721c384bdfe6921a1e5c1d84561 Mon Sep 17 00:00:00 2001 From: Karl Linden Date: Thu, 25 Feb 2016 20:40:21 +0100 Subject: [PATCH] Fix building with libedit. --- example-clients/transport.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 #include -#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