libbsd: fix build w/musl by adding missing include
Patch from void, with prefix added.
This commit is contained in:
parent
36af9cbb4c
commit
e2f8d7bd44
@ -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