Commit d499461f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Stopgap fix to get FreeBSD 10-current compiling again.

parent da6775ef
......@@ -38,7 +38,12 @@
#include <sys/socket.h>
#ifdef HAVE_LIBEDIT
#include <editline/readline.h>
# include <stdio.h>
# ifdef HAVE_EDIT_READLINE_READLINE_H
# include <edit/readline/readline.h>
# else
# include <editline/readline.h>
# endif
#endif
#include "vcli.h"
......
......@@ -150,6 +150,7 @@ AC_SUBST(PCRE_LIBS)
PKG_CHECK_MODULES([LIBEDIT], [libedit],
[AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit])],
[AC_CHECK_HEADERS([readline/readline.h])
AC_CHECK_HEADERS([edit/readline/readline.h])
AC_CHECK_LIB(edit, el_init,
[ AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit])
LIBEDIT_CFLAGS=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment