summaryrefslogtreecommitdiff
path: root/ext/pgsql
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-04-28 18:33:19 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-04-29 10:40:59 +0200
commit67f9b0b754654e76ef8d5b5539fb520541092950 (patch)
tree304f2322af2e67512047d3832024391db3f79eaa /ext/pgsql
parentb1b98e08d0ad4bbbb213c002188ffa47075a8b0d (diff)
downloadphp-git-67f9b0b754654e76ef8d5b5539fb520541092950.tar.gz
Fix #79532: sizeof off_t can be wrong
We have to actually determine the proper `SIZEOF_OFF_T`. Interestingly, it is `4` on Windows x64. We also have to prevent the redefinition in pg_config.h. The clean solution would likely be to not include pg_config.h at all, but that's out of scope for BC reasons for now.
Diffstat (limited to 'ext/pgsql')
-rw-r--r--ext/pgsql/php_pgsql.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h
index cecd2cc95b..a6c884d912 100644
--- a/ext/pgsql/php_pgsql.h
+++ b/ext/pgsql/php_pgsql.h
@@ -51,6 +51,7 @@ extern zend_module_entry pgsql_module_entry;
#endif
#ifdef HAVE_PG_CONFIG_H
+#undef SIZEOF_OFF_T
#include <pg_config.h>
#endif