From 399b8a7f6d731b4dd824fb9fbdb2814268181bc4 Mon Sep 17 00:00:00 2001 From: Michael Rieder Date: Fri, 3 Jul 2026 17:14:03 +0200 Subject: [PATCH] Fix missing SSIZE_MAX declaration by including src/files.cpp and src/async_io_epoll.cpp use SSIZE_MAX without including , relying on it being pulled in transitively by other headers. Newer glibc/libstdc++ (e.g. GCC 16 / glibc 2.43) no longer expose SSIZE_MAX this way, breaking the build. Added the explicit include to these files and to src/async_io_kqueue.cpp, which has the same latent issue. --- src/async_io_epoll.cpp | 1 + src/async_io_kqueue.cpp | 1 + src/files.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/async_io_epoll.cpp b/src/async_io_epoll.cpp index 7ed9493..df60584 100644 --- a/src/async_io_epoll.cpp +++ b/src/async_io_epoll.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/src/async_io_kqueue.cpp b/src/async_io_kqueue.cpp index 95bc90e..123020d 100644 --- a/src/async_io_kqueue.cpp +++ b/src/async_io_kqueue.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/src/files.cpp b/src/files.cpp index 31047b9..c2f3d01 100644 --- a/src/files.cpp +++ b/src/files.cpp @@ -6,6 +6,7 @@ #include #include +#include #include #include #include