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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 25b3a36619..abfd1d552c 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -31,6 +31,9 @@
#if HAVE_PGSQL
+#ifndef InvalidOid
+#define InvalidOid ((Oid) 0)
+#endif
#define PGSQL_ASSOC 1<<0
#define PGSQL_NUM 1<<1