libbsd: fix build w/musl by adding missing include

Patch from void, with prefix added.
wip/yesman
Will Dietz 6 years ago
parent 36af9cbb4c
commit e2f8d7bd44
  1. 4
      pkgs/development/libraries/libbsd/default.nix
  2. 14
      pkgs/development/libraries/libbsd/musl.patch

@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
# the configure scripts
nativeBuildInputs = [ autoreconfHook ];
patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch;
patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch
# Suitable for all but limited to musl to avoid rebuild
++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./musl.patch;
meta = with stdenv.lib; {
description = "Common functions found on BSD systems";

@ -0,0 +1,14 @@
Source: maxice8
Upstream: no
Reason: fixes compilation
--- a/src/flopen.c
+++ b/src/flopen.c
@@ -34,6 +34,7 @@
#include <errno.h>
#include <stdarg.h>
#include <unistd.h>
+#include <fcntl.h>
#include <libutil.h>
Loading…
Cancel
Save