summaryrefslogtreecommitdiff
path: root/src/bin/psql/psql.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-01-25 03:51:59 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-01-25 03:51:59 +0000
commitf389e9dfc2113b1e1655fd4d0cb8c98ebd880fc1 (patch)
tree1aa70cfa88833aa476916e8e6c2e0b1fb17d882a /src/bin/psql/psql.c
parent6dbe1be690055186cac5b7e79a18470391ad6172 (diff)
Change how readline support is included in psql.c ...
See message to hackers@ mailing list concerning this...
Diffstat (limited to 'src/bin/psql/psql.c')
-rw-r--r--src/bin/psql/psql.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index 2e730724501..6095c3a9cd0 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 <readline/readline.h>
-#include <readline/history.h>
-#endif
+# ifdef HAVE_READLINE_H
+# include <readline.h>
+# include <history.h>
+# else
+# include <readline/readline.h>
+# include <readline/history.h>
+# endif
#endif
#define PROMPT "=> "