summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-09-05 12:58:48 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-09-05 12:58:48 +0000
commit7828a6621962ee43df26630720491aeb950a576f (patch)
treea26293e7715862f118744f112281aedb45477545
parent83e7b29d472e711e756e546e1e11b5c1fda3ccea (diff)
downloadphp-git-7828a6621962ee43df26630720491aeb950a576f.tar.gz
MFB: Fixed bug #41845 (pgsql extension does not compile with PostgreSQL
<7.4)
-rw-r--r--ext/pgsql/pgsql.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index a94b7c4559..dee9723479 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -82,6 +82,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);