Merge pull request #48355 from dtzWill/fix/libbsd-musl-again
libbsd: fix build w/musl by adding missing include
This commit is contained in:
commit
7f3f1fd424
@ -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";
|
||||
|
14
pkgs/development/libraries/libbsd/musl.patch
Normal file
14
pkgs/development/libraries/libbsd/musl.patch
Normal 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>
|
||||
|
Loading…
Reference in New Issue
Block a user