summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 70aa530229..f5bf85e7e9 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -1564,8 +1564,10 @@ PHP_FUNCTION(pg_last_oid)
zval **result;
PGresult *pgsql_result;
pgsql_result_handle *pg_result;
+#ifdef HAVE_PQOIDVALUE
Oid oid;
-
+#endif
+
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &result)==FAILURE) {
WRONG_PARAM_COUNT;
}