gdbm: backport upstream fix for musl

This commit is contained in:
Alyssa Ross 2025-04-24 23:26:26 +02:00
parent 0ed5a8612b
commit b6973f28b0
2 changed files with 26 additions and 0 deletions

View File

@ -19,6 +19,7 @@ stdenv.mkDerivation (finalAttrs: {
# Remove on next release.
./upstream-darwin-clock-nanosleep-fix.patch
./upstream-lockwait-test-fixes.patch
./upstream-musl-ssize_t-fix.patch
];
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];

View File

@ -0,0 +1,25 @@
From 39ef0347f78ef691c9ad815360198f577043ce4c Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <gray@gnu.org>
Date: Mon, 24 Mar 2025 07:56:00 +0200
Subject: Add missing include
* tools/gdbmapp.h: Include sys/types.h
---
tools/gdbmapp.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/gdbmapp.h b/tools/gdbmapp.h
index 3ea826b..e20253a 100644
--- a/tools/gdbmapp.h
+++ b/tools/gdbmapp.h
@@ -16,6 +16,7 @@
#include <stdlib.h>
#include <stdarg.h>
+#include <sys/types.h>
#include "gettext.h"
#ifdef HAVE_LOCALE_H
# include <locale.h>
--
cgit v1.1