pgpool2.git / summary / log / commit / refs
commit 7029be2c7db4f1bce1887ebb23af9f319eef110c
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Fri Dec 11 01:29:26 2015 +0000
Fix compiler warnings when build with PostgreSQL 9.3 or later.
src/sql/pgpool_adm/pgpool_adm.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/sql/pgpool_adm/pgpool_adm.c b/src/sql/pgpool_adm/pgpool_adm.c
index 12e22b25c..8f7dc6ab0 100644
--- a/src/sql/pgpool_adm/pgpool_adm.c
+++ b/src/sql/pgpool_adm/pgpool_adm.c
@@ -3,7 +3,7 @@
* pgpool_adm.c
*
*
- * Copyright (c) 2002-2011, PostgreSQL Global Development Group
+ * Copyright (c) 2002-2015, PostgreSQL Global Development Group
*
* Author: Jehan-Guillaume (ioguix) de Rorthais <jgdr@dalibo.com>
*
@@ -18,6 +18,14 @@
#include "foreign/foreign.h"
#include "nodes/pg_list.h"
+/*
+ * PostgreSQL 9.3 or later requires htup_details.h to get the definition of
+ * heap_form_tuple
+ */
+#if defined(PG_VERSION_NUM) && (PG_VERSION_NUM >= 90300)
+#include "access/htup_details.h"
+#endif
+
#include <unistd.h>
#include "catalog/pg_type.h"
[parent: e9c05ed8a782]