mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Provisioning: Remove unistd.h from postreSQL from 64 bit Windows
PostreSQL 9.6 version creates emtpy unistd.h file which will cause failure in Qt Safe Renderer' MinGW build. By removing it the system should use the one from the MinGW environment. Task-number: COIN-488 Change-Id: I76d3f34dd9726dc4f0aac06c410f306dffc8f365 Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
This commit is contained in:
@@ -58,6 +58,7 @@ if (Is64BitWinHost) {
|
||||
Remove-Item -Path $packagex64
|
||||
# Remove pthread.h file so it won't be used in mingw builds (QTBUG-79555)
|
||||
Remove-item -Path "$installFolder\pgsql\include\pthread.h"
|
||||
Remove-item -Path "$installFolder\pgsql\include\unistd.h"
|
||||
|
||||
Set-EnvironmentVariable "POSTGRESQL_INCLUDE_x64" "$installFolder\pgsql\include"
|
||||
Set-EnvironmentVariable "POSTGRESQL_LIB_x64" "$installFolder\pgsql\lib"
|
||||
|
||||
Reference in New Issue
Block a user