Add gdal_incompatible-pointer-types.patch
This commit is contained in:
parent
eea08ba9a5
commit
428abb70df
@ -71,6 +71,8 @@ Source5: %{name}-cleaner.sh
|
|||||||
|
|
||||||
# Add some utils to the default install target
|
# Add some utils to the default install target
|
||||||
Patch0: gdal_utils.patch
|
Patch0: gdal_utils.patch
|
||||||
|
# Fix passing incompatible pointer type
|
||||||
|
Patch1: gdal_incompatible-pointer-types.patch
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
12
gdal_incompatible-pointer-types.patch
Normal file
12
gdal_incompatible-pointer-types.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -rupN gdal-3.8.3-fedora/port/cpl_vsil_win32.cpp gdal-3.8.3-fedora-new/port/cpl_vsil_win32.cpp
|
||||||
|
--- gdal-3.8.3-fedora/port/cpl_vsil_win32.cpp 2024-01-04 19:08:58.000000000 +0100
|
||||||
|
+++ gdal-3.8.3-fedora-new/port/cpl_vsil_win32.cpp 2024-02-15 10:00:46.920595081 +0100
|
||||||
|
@@ -812,7 +812,7 @@ int VSIWin32FilesystemHandler::Stat(cons
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
- nResult = _wstat64(pwszFilename, pStatBuf);
|
||||||
|
+ nResult = _wstat64(pwszFilename, reinterpret_cast<struct _stat64 *>(pStatBuf));
|
||||||
|
if (nResult < 0)
|
||||||
|
{
|
||||||
|
DWORD nLastError = GetLastError();
|
Loading…
Reference in New Issue
Block a user