Commit f389e9df authored by Marc G. Fournier's avatar Marc G. Fournier

Change how readline support is included in psql.c ...

See message to hackers@ mailing list concerning this...
parent 6dbe1be6
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 @@ ...@@ -30,17 +30,16 @@
#include "strdup.h" #include "strdup.h"
#endif #endif
#ifdef NOREADLINE #ifndef HAVE_LIBREADLINE
#include "rlstubs.h" # include "rlstubs.h"
#else #else
/* from the GNU readline library */ # ifdef HAVE_READLINE_H
#ifdef OLD_READLINE # include <readline.h>
#include "readline.h" # include <history.h>
#include "history.h" # else
#else # include <readline/readline.h>
#include <readline/readline.h> # include <readline/history.h>
#include <readline/history.h> # endif
#endif
#endif #endif
#define PROMPT "=> " #define PROMPT "=> "
......
...@@ -8,6 +8,17 @@ ...@@ -8,6 +8,17 @@
#define BLCKSZ 8192 #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 <readline.h> vs <readline/readline.h>
*/
/* #undef HAVE_READLINE_H */
#define HAVE_SYS_SELECT_H #define HAVE_SYS_SELECT_H
#define HAVE_TERMIOS_H #define HAVE_TERMIOS_H
#define HAVE_VALUES_H #define HAVE_VALUES_H
......
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