From f389e9dfc2113b1e1655fd4d0cb8c98ebd880fc1 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Sat, 25 Jan 1997 03:51:59 +0000 Subject: [PATCH] Change how readline support is included in psql.c ... See message to hackers@ mailing list concerning this... --- src/bin/psql/psql.c | 21 ++++++++++----------- src/include/config.h | 11 +++++++++++ 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index 2e73072450..6095c3a9cd 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.49 1997/01/13 02:35:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.50 1997/01/25 03:51:59 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -30,17 +30,16 @@ #include "strdup.h" #endif -#ifdef NOREADLINE -#include "rlstubs.h" +#ifndef HAVE_LIBREADLINE +# include "rlstubs.h" #else -/* from the GNU readline library */ -#ifdef OLD_READLINE -#include "readline.h" -#include "history.h" -#else -#include -#include -#endif +# ifdef HAVE_READLINE_H +# include +# include +# else +# include +# include +# endif #endif #define PROMPT "=> " diff --git a/src/include/config.h b/src/include/config.h index 66737fdf4b..8dc0548988 100644 --- a/src/include/config.h +++ b/src/include/config.h @@ -8,6 +8,17 @@ #define BLCKSZ 8192 +/* Define to enable readline/history support in psql */ +/* #undef HAVE_LIBREADLINE */ + +/* These two defines are not used until HAVE_LIBREADLINE + * are also defined + * + * Define if vs + */ +/* #undef HAVE_READLINE_H */ + + #define HAVE_SYS_SELECT_H #define HAVE_TERMIOS_H #define HAVE_VALUES_H -- 2.40.0