From e7cf4b21f199592e902daf44b6a5e44f7e0164fa Mon Sep 17 00:00:00 2001 From: Heikki Halmet Date: Tue, 28 Jan 2020 09:43:18 +0200 Subject: Provisioning: Remove unistd.h from postreSQL 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: Id7f2f5024998cc5fbeb61e144bcd87f6e09b2bb1 Reviewed-by: Jukka Jokiniva --- coin/provisioning/common/windows/postgresql.ps1 | 1 + 1 file changed, 1 insertion(+) (limited to 'coin/provisioning/common/windows') diff --git a/coin/provisioning/common/windows/postgresql.ps1 b/coin/provisioning/common/windows/postgresql.ps1 index 35d3fcb9..7fcaeb02 100644 --- a/coin/provisioning/common/windows/postgresql.ps1 +++ b/coin/provisioning/common/windows/postgresql.ps1 @@ -85,6 +85,7 @@ Write-Host "Remove downloaded $packagex86 ..." Remove-Item -Path $packagex86 # 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_x86" "$installFolder\pgsql\include" Set-EnvironmentVariable "POSTGRESQL_LIB_x86" "$installFolder\pgsql\lib" -- cgit v1.2.3