summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-03-18 17:43:55 +0000
committerjlam <jlam@pkgsrc.org>2000-03-18 17:43:55 +0000
commitfdbd3710d5e73017f7723f107f210be5eada438e (patch)
tree971e320c0cfe9a483acd0b82dfbb6773e93b5834 /databases
parent9983612216f1d1e5c31772065738fd49fcf09ff0 (diff)
downloadpkgsrc-fdbd3710d5e73017f7723f107f210be5eada438e.tar.gz
Missed this patch
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql/patches/patch-ai41
1 files changed, 41 insertions, 0 deletions
diff --git a/databases/postgresql/patches/patch-ai b/databases/postgresql/patches/patch-ai
new file mode 100644
index 00000000000..ab742d258e4
--- /dev/null
+++ b/databases/postgresql/patches/patch-ai
@@ -0,0 +1,41 @@
+$NetBSD: patch-ai,v 1.5 2000/03/18 17:43:55 jlam Exp $
+
+--- bin/psql/psql.c.orig Fri Jun 4 17:21:13 1999
++++ bin/psql/psql.c Thu Mar 16 17:49:44 2000
+@@ -45,28 +45,23 @@
+ #endif
+
+ #ifdef HAVE_LIBREADLINE
+-#ifdef HAVE_READLINE_H
+-#include <readline.h>
+-#define USE_READLINE 1
+-#if defined(HAVE_HISTORY_H)
+-#include <history.h>
+-#define USE_HISTORY 1
+-#endif
+-#else
+ #if defined(HAVE_READLINE_READLINE_H)
+ #include <readline/readline.h>
+ #define USE_READLINE 1
++#elif defined(HAVE_READLINE_H)
++#include <readline.h>
++#define USE_READLINE 1
++#endif
++#endif
++#if defined(HAVE_HISTORY)
+ #if defined(HAVE_READLINE_HISTORY_H)
+ #include <readline/history.h>
+ #define USE_HISTORY 1
+-#endif
+-#endif
+-#endif
+-#if defined(HAVE_HISTORY) && !defined(USE_HISTORY)
++#elif defined(HAVE_HISTORY_H)
++#include <history.h>
+ #define USE_HISTORY 1
+ #endif
+ #endif
+-
+
+ #ifdef WIN32
+ #define popen(x,y) _popen(x,y)