diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-09-06 10:33:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-09-06 10:33:14 +0000 |
commit | c36cbf0aa08066b5f4310cfa03c7991852645fcc (patch) | |
tree | 4edad7e51de0aa24100c027f4abfc027acb8c4e3 | |
parent | e43b1484c399aeeb7a765c73070e4083dd81dc48 (diff) |
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 |