From adcfdf7fa43e6cf2772bd51cc8b15365d708ed2c Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 2 Jul 2007 15:37:43 +0000 Subject: Fixed bug #41845 (pgsql extension does not compile with PostgreSQL <7.4) --- ext/pgsql/pgsql.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/pgsql/pgsql.c') diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 73e25af365..eadcc1ce14 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -81,6 +81,10 @@ #define CHECK_DEFAULT_LINK(x) if ((x) == -1) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "No PostgreSQL link opened yet"); } +#ifndef HAVE_PQFREEMEM +#define PGfreemem free +#endif + ZEND_DECLARE_MODULE_GLOBALS(pgsql) static PHP_GINIT_FUNCTION(pgsql); -- cgit v1.2.1