mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
committed by
Alfredo Tupone
parent
ff90b89cab
commit
9b810c67bd
14
www-servers/moonbridge/files/moonbridge-1.0.1-fcntl.patch
Normal file
14
www-servers/moonbridge/files/moonbridge-1.0.1-fcntl.patch
Normal 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
|
||||
@@ -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 )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user