diff --git a/pkgs/by-name/ap/aprutil/package.nix b/pkgs/by-name/ap/aprutil/package.nix index f140e7a61493..58af8e3fba42 100644 --- a/pkgs/by-name/ap/aprutil/package.nix +++ b/pkgs/by-name/ap/aprutil/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + fetchpatch, makeWrapper, apr, expat, @@ -35,6 +36,11 @@ stdenv.mkDerivation (finalAttrs: { ./fix-libxcrypt-build.patch # Fix incorrect Berkeley DB detection with newer versions of clang due to implicit `int` on main errors. ./clang-bdb.patch + # Fix error with missing function prototype + (fetchpatch { + url = "https://github.com/apache/apr-util/commit/e67caa006c75181b45b761cd50294cb3c8e18f1a.patch?full_index=1"; + hash = "sha256-fwKT7mGPHIgJ5uG/KAOOE/38FSNfow+GJgHCxcp9mgI="; + }) ] ++ lib.optional stdenv.hostPlatform.isFreeBSD ./include-static-dependencies.patch;