Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

libbsd: fix build w/musl by adding missing include

Patch from void, with prefix added.

+17 -1
+3 -1
pkgs/development/libraries/libbsd/default.nix
··· 13 13 # the configure scripts 14 14 nativeBuildInputs = [ autoreconfHook ]; 15 15 16 - patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch; 16 + patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch 17 + # Suitable for all but limited to musl to avoid rebuild 18 + ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./musl.patch; 17 19 18 20 meta = with stdenv.lib; { 19 21 description = "Common functions found on BSD systems";
+14
pkgs/development/libraries/libbsd/musl.patch
··· 1 + Source: maxice8 2 + Upstream: no 3 + Reason: fixes compilation 4 + 5 + --- a/src/flopen.c 6 + +++ b/src/flopen.c 7 + @@ -34,6 +34,7 @@ 8 + #include <errno.h> 9 + #include <stdarg.h> 10 + #include <unistd.h> 11 + +#include <fcntl.h> 12 + 13 + #include <libutil.h> 14 +