This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=16fa11c0f74aaea75d20ee206d3dd1c93733a44c commit 16fa11c0f74aaea75d20ee206d3dd1c93733a44c Author: Guillem Jover <[email protected]> AuthorDate: Tue Aug 5 21:54:48 2025 +0200 libdpkg: Enable meminfo_get_available() on GNU/Hurd The Hurd now provides a Linux compatible /proc/meminfo interface, which we use to compute the amount of memory that can be used for compression. Prompted-by: Helmut Grohne <[email protected]> Ref: https://lists.debian.org/debian-dpkg/2024/12/msg00004.html --- lib/dpkg/meminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dpkg/meminfo.c b/lib/dpkg/meminfo.c index 3288adf39..665c20099 100644 --- a/lib/dpkg/meminfo.c +++ b/lib/dpkg/meminfo.c @@ -159,7 +159,7 @@ meminfo_get_available_from_file(const char *filename, uint64_t *val) enum meminfo_error_code meminfo_get_available(uint64_t *val) { -#ifdef __linux__ +#if defined(__linux__) || defined(__GNU__) return meminfo_get_available_from_file("/proc/meminfo", val); #else return MEMINFO_NO_FILE; -- Dpkg.Org's dpkg

