Commit 7e51d6ff authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Stopgap fix to get FreeBSD 10-current compiling again.

parent 9dc28b2c
......@@ -32,8 +32,12 @@
#include <sys/socket.h>
#ifdef HAVE_LIBEDIT
#include <stdio.h>
#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 <errno.h>
......
......@@ -145,6 +145,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