From b7a76657853485cd700fa8c88161f74cd6bbe16a Mon Sep 17 00:00:00 2001
From: "Stephen R. van den Berg" <srb@cuci.nl>
Date: Fri, 4 Jul 2008 22:11:00 +0200
Subject: [PATCH] Get rid of them pesky redefine warnings

Rev: src/modules/Postgres/acconfig.h:1.13
Rev: src/modules/Postgres/override.h:1.1
---
 src/modules/Postgres/acconfig.h | 3 ++-
 src/modules/Postgres/override.h | 9 +++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 src/modules/Postgres/override.h

diff --git a/src/modules/Postgres/acconfig.h b/src/modules/Postgres/acconfig.h
index 360942d737..c1be15b221 100644
--- a/src/modules/Postgres/acconfig.h
+++ b/src/modules/Postgres/acconfig.h
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: acconfig.h,v 1.12 2008/03/13 15:10:06 grubba Exp $
+|| $Id: acconfig.h,v 1.13 2008/07/04 20:11:00 srb Exp $
 */
 
 #ifndef PIKE_POSTGRES_H
@@ -61,6 +61,7 @@
 /* postgres_fe.h should be used in preference to postgres.h in
  * client code.
  */
+#include "override.h"
 #ifdef HAVE_POSTGRESQL_SERVER_POSTGRES_FE_H
 #include <server/postgres_fe.h>
 #elif defined(HAVE_SERVER_POSTGRES_FE_H)
diff --git a/src/modules/Postgres/override.h b/src/modules/Postgres/override.h
new file mode 100644
index 0000000000..5178c57dff
--- /dev/null
+++ b/src/modules/Postgres/override.h
@@ -0,0 +1,9 @@
+/* These are defined inside the Postgres library headers as well.
+ * We don't want the redefine-warnings.
+ */
+
+#undef PACKAGE_BUGREPORT
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_VERSION
-- 
GitLab