diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-08-07 13:24:05 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-08-07 13:25:07 +0200 |
commit | be794894ef30764e54a8a52fa6c085f3c4a88b14 (patch) | |
tree | 1b86371b531c750b6cdeecef3a008424feca7511 /ext/pdo_pgsql/config.w32 | |
parent | ae91f8572e84431aec4856f14c727f5ef8b33eb3 (diff) | |
download | php-git-be794894ef30764e54a8a52fa6c085f3c4a88b14.tar.gz |
Fix detection of pg_config.h
pg_config.h is supposed to be placed right besides libpq-fe.h, so we
should check the same paths.
Diffstat (limited to 'ext/pdo_pgsql/config.w32')
-rw-r--r-- | ext/pdo_pgsql/config.w32 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/config.w32 b/ext/pdo_pgsql/config.w32 index 478b63ab70..fc060ced43 100644 --- a/ext/pdo_pgsql/config.w32 +++ b/ext/pdo_pgsql/config.w32 @@ -7,7 +7,7 @@ if (PHP_PDO_PGSQL != "no") { CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + ";" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;")) { EXTENSION("pdo_pgsql", "pdo_pgsql.c pgsql_driver.c pgsql_statement.c"); - if (CHECK_HEADER_ADD_INCLUDE("pg_config.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + ";" + PHP_PHP_BUILD + "\\include\\pgsql")) { + if (CHECK_HEADER_ADD_INCLUDE("pg_config.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + ";" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;")) { ADD_FLAG('CFLAGS_PDO_PGSQL', "/D HAVE_PG_CONFIG_H"); } if (X64) { |