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:
Tuomas Heimonen
2020-01-31 08:22:02 +02:00
parent 311e9abd1e
commit eb3d2ed68b

View File

@@ -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"