commit:     5b79aeba24ffaae7709624fef87d758ce13b4eec
Author:     Stijn Tintel <stijn <AT> linux-ipv6 <DOT> be>
AuthorDate: Mon May  4 17:37:01 2020 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Fri May  8 00:02:16 2020 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=5b79aeba

sys-libs/ldb: add missing include of fcntl.h

Fixes #305.

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Stijn Tintel <stijn <AT> linux-ipv6.be>
Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>

 sys-libs/ldb/files/ldb-2.0.8-include-fcntl.h-for-pid_t.patch | 10 ++++++++++
 sys-libs/ldb/ldb-2.0.8.ebuild                                |  1 +
 2 files changed, 11 insertions(+)

diff --git a/sys-libs/ldb/files/ldb-2.0.8-include-fcntl.h-for-pid_t.patch 
b/sys-libs/ldb/files/ldb-2.0.8-include-fcntl.h-for-pid_t.patch
new file mode 100644
index 0000000..d1e0ed1
--- /dev/null
+++ b/sys-libs/ldb/files/ldb-2.0.8-include-fcntl.h-for-pid_t.patch
@@ -0,0 +1,10 @@
+--- a/include/ldb.h
++++ b/include/ldb.h
+@@ -46,6 +46,7 @@
+ #define _LDB_H_ 1
+ /*! \endcond */
+ 
++#include <fcntl.h>
+ #include <stdbool.h>
+ #include <talloc.h>
+ #include <tevent.h>

diff --git a/sys-libs/ldb/ldb-2.0.8.ebuild b/sys-libs/ldb/ldb-2.0.8.ebuild
index dbd9db1..06ee854 100644
--- a/sys-libs/ldb/ldb-2.0.8.ebuild
+++ b/sys-libs/ldb/ldb-2.0.8.ebuild
@@ -47,6 +47,7 @@ MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
 PATCHES=(
        "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch
        "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
+       "${FILESDIR}"/${P}-include-fcntl.h-for-pid_t.patch
 )
 
 pkg_setup() {

Reply via email to