diff --git a/gdal.spec b/gdal.spec index 333750b..39e6d47 100644 --- a/gdal.spec +++ b/gdal.spec @@ -71,6 +71,8 @@ Source5: %{name}-cleaner.sh # Add some utils to the default install target Patch0: gdal_utils.patch +# Fix passing incompatible pointer type +Patch1: gdal_incompatible-pointer-types.patch BuildRequires: cmake BuildRequires: gcc-c++ diff --git a/gdal_incompatible-pointer-types.patch b/gdal_incompatible-pointer-types.patch new file mode 100644 index 0000000..419c90d --- /dev/null +++ b/gdal_incompatible-pointer-types.patch @@ -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(pStatBuf)); + if (nResult < 0) + { + DWORD nLastError = GetLastError();