On 02/01/12 2:03 PM, Brad wrote:
The following patch allows the autoconf script to detect the presence of
libedit when there isn't a pkg-config file present and thus allowing
Varnish to detect libedit on OpenBSD/FreeBSD/NetBSD/DragonFly.
diff --git a/bin/varnishadm/varnishadm.c b/bin/varnishadm/varnishadm.c
index bb5cc8e..90532a8 100644
--- a/bin/varnishadm/varnishadm.c
+++ b/bin/varnishadm/varnishadm.c
@@ -33,8 +33,12 @@
#ifdef HAVE_LIBEDIT
#include<stdio.h>
+#ifdef HAVE_READLINE_READLINE_H
+#include<readline/readline.h>
+#else
#include<editline/readline.h>
#endif
+#endif
#include<errno.h>
#include<fcntl.h>
This part of the diff was not commited and the tree is broken
at the moment.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev