diff options
author | 2016-09-06 10:33:13 +0000 | |
---|---|---|
committer | 2016-09-06 10:33:13 +0000 | |
commit | 036f87feb49683cb2586506966685097812f7f98 (patch) | |
tree | 295c7d74b6853992c96d27dc093dcea559deebf7 | |
parent | byebye SIGNING_PARAMETERS (diff) | |
download | wireguard-openbsd-036f87feb49683cb2586506966685097812f7f98.tar.xz wireguard-openbsd-036f87feb49683cb2586506966685097812f7f98.zip |
These tests didn't work without setting READLINE because we don't
install <editline/readline.h> by default; make them work by using
the copy from the source tree.
Issue reported by otto@.
-rw-r--r-- | regress/lib/libedit/readline/Makefile | 3 | ||||
-rw-r--r-- | regress/lib/libedit/readline/history.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libedit/readline/Makefile b/regress/lib/libedit/readline/Makefile index cbffb37b11e..cda2c180cf4 100644 --- a/regress/lib/libedit/readline/Makefile +++ b/regress/lib/libedit/readline/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2016/05/06 15:39:42 schwarze Exp $ +# $OpenBSD: Makefile,v 1.2 2016/09/06 10:33:13 schwarze Exp $ # To test /usr/src/gnu/lib/libreadline, run "make READLINE=1". # To test /usr/src/lib/libedit/readline, run just "make". @@ -9,6 +9,7 @@ PROG = history CFLAGS += -DREADLINE LDADD += -lcurses -lreadline .else +CFLAGS += -I${BSDSRCDIR}/lib/libedit LDADD += -lcurses -ledit .endif diff --git a/regress/lib/libedit/readline/history.c b/regress/lib/libedit/readline/history.c index d1c677505c0..e74c650fc3d 100644 --- a/regress/lib/libedit/readline/history.c +++ b/regress/lib/libedit/readline/history.c @@ -20,10 +20,9 @@ #include <string.h> #ifdef READLINE -#include <stdio.h> #include <readline/history.h> #else -#include <editline/readline.h> +#include <readline/readline.h> #endif |