|
From: <sv...@op...> - 2026-10-03 14:13:17
|
Author: manx Date: Sat Oct 3 16:13:10 2026 New Revision: 25742 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=25742 Log: [Fix] zlib: Include <errno.h> early in gzguts.h. Fixes build on MidnightBSD. Fixes <https://github.com/madler/zlib/commit/813dac5dcb5902ed241e9b0d38abd2d847a335a9>. Modified: trunk/OpenMPT/include/zlib/OpenMPT.txt trunk/OpenMPT/include/zlib/gzguts.h Modified: trunk/OpenMPT/include/zlib/OpenMPT.txt ============================================================================== --- trunk/OpenMPT/include/zlib/OpenMPT.txt Sat Oct 3 12:49:51 2026 (r25741) +++ trunk/OpenMPT/include/zlib/OpenMPT.txt Sat Oct 3 16:13:10 2026 (r25742) @@ -4,6 +4,7 @@ * Commit <https://github.com/madler/zlib/commit/813dac5dcb5902ed241e9b0d38abd2d847a335a9> has been applied to fix <https://github.com/madler/zlib/issues/1168>. + * `gzguts.h` has been modified to unconditionally include `<errno.h>` early. * `zconf.h` has been modified to avoid preprocessor warnings. See <https://github.com/madler/zlib/issues/1169>. * `contrib/minizip/iowin32.c` has been modified to only use Windows 8 WinRT Modified: trunk/OpenMPT/include/zlib/gzguts.h ============================================================================== --- trunk/OpenMPT/include/zlib/gzguts.h Sat Oct 3 12:49:51 2026 (r25741) +++ trunk/OpenMPT/include/zlib/gzguts.h Sat Oct 3 16:13:10 2026 (r25742) @@ -37,6 +37,8 @@ # include <limits.h> #endif +#include <errno.h> /* OpenMPT */ + #ifndef _POSIX_C_SOURCE # define _POSIX_C_SOURCE 200112L #endif |