libbsd: fix build w/musl by adding missing include

Patch from void, with prefix added.
This commit is contained in:
Will Dietz 2018-10-13 19:53:19 -05:00
parent 36af9cbb4c
commit e2f8d7bd44
2 changed files with 17 additions and 1 deletions

View File

@ -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";

View File

@ -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>