Merge pull request #48355 from dtzWill/fix/libbsd-musl-again

libbsd: fix build w/musl by adding missing include
This commit is contained in:
Will Dietz 2018-10-13 21:46:03 -05:00 committed by GitHub
commit 7f3f1fd424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
# the configure scripts # the configure scripts
nativeBuildInputs = [ autoreconfHook ]; 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; { meta = with stdenv.lib; {
description = "Common functions found on BSD systems"; 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>