commit:     2958fd6e3029daf53af53720cc85840d2374c6ec
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 20 17:57:27 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Sep 20 17:57:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2958fd6e

dev-ml/ocamlfuse: add unistd include

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

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/ocamlfuse/files/ocamlfuse-2.7.1_p7-unistd.patch | 10 ++++++++++
 dev-ml/ocamlfuse/ocamlfuse-2.7.1_p7-r1.ebuild          |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/dev-ml/ocamlfuse/files/ocamlfuse-2.7.1_p7-unistd.patch 
b/dev-ml/ocamlfuse/files/ocamlfuse-2.7.1_p7-unistd.patch
new file mode 100644
index 000000000000..b13f906a5ef3
--- /dev/null
+++ b/dev-ml/ocamlfuse/files/ocamlfuse-2.7.1_p7-unistd.patch
@@ -0,0 +1,10 @@
+--- a/lib/Unix_util_stubs.c    2022-09-20 19:53:44.445778566 +0200
++++ b/lib/Unix_util_stubs.c    2022-09-20 19:54:03.521504343 +0200
+@@ -24,6 +24,7 @@
+   [email protected]
+ */
+ 
++#include <unistd.h>
+ #include <stddef.h>
+ #include <string.h>
+ #include <errno.h>

diff --git a/dev-ml/ocamlfuse/ocamlfuse-2.7.1_p7-r1.ebuild 
b/dev-ml/ocamlfuse/ocamlfuse-2.7.1_p7-r1.ebuild
index fdf08ccbc300..63891abc2fe4 100644
--- a/dev-ml/ocamlfuse/ocamlfuse-2.7.1_p7-r1.ebuild
+++ b/dev-ml/ocamlfuse/ocamlfuse-2.7.1_p7-r1.ebuild
@@ -31,6 +31,8 @@ BDEPEND="
        dev-ml/opam
 "
 
+PATCHES=( "${FILESDIR}"/${P}-unistd.patch )
+
 src_compile() {
        tc-export CPP
        dune_src_compile

Reply via email to