www-servers/moonbridge: Fix building on musl. Include fcntl

It is explicitely required to include fcntl.h in musl.
Else we get F_SETFD, FD_CLOEXEC undefined errors.

Closes: https://bugs.gentoo.org/828671

Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26352
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
brahmajit das
2022-07-12 00:54:41 +05:30
committed by Alfredo Tupone
parent ff90b89cab
commit 9b810c67bd
2 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
#It is explicitely required to include fcntl.h in musl.
#Else we get F_SETFD, FD_CLOEXEC undefined errors.
#
#Closes: https://bugs.gentoo.org/828671
--- a/moonbridge.c
+++ b/moonbridge.c
@@ -36,6 +36,7 @@
#include <getopt.h>
#include <sys/file.h>
#include <syslog.h>
+#include <fcntl.h>
#if defined(__FreeBSD__) || __has_include(<libutil.h>)
#include <libutil.h>
#endif

View File

@@ -27,7 +27,10 @@ BDEPEND="sys-devel/pmake
S="${WORKDIR}"/${MYP}
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-fcntl.patch
)
DOCS=( README reference.txt )