git: fff552e2f38c - main - databases/libcouchbase: Fix build

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 19:59:33 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fff552e2f38c4a5628d5aeabacc49bf34c0ffd47

commit fff552e2f38c4a5628d5aeabacc49bf34c0ffd47
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-03 19:03:55 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-03 19:59:24 +0000

    databases/libcouchbase: Fix build
    
    Approved by:    portmgr (blanket)
---
 .../files/patch-plugins_io_libuv_libuv__compat.h            | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/databases/libcouchbase/files/patch-plugins_io_libuv_libuv__compat.h b/databases/libcouchbase/files/patch-plugins_io_libuv_libuv__compat.h
new file mode 100644
index 000000000000..c082286f2d92
--- /dev/null
+++ b/databases/libcouchbase/files/patch-plugins_io_libuv_libuv__compat.h
@@ -0,0 +1,13 @@
+--- plugins/io/libuv/libuv_compat.h.orig	2023-06-03 18:58:46 UTC
++++ plugins/io/libuv/libuv_compat.h
+@@ -35,6 +35,10 @@
+ #define UNKNOWN -1
+ #endif
+ 
++#ifndef ENODATA
++#define ENODATA EPIPE
++#endif
++
+ #ifndef EAIFAMNOSUPPORT
+ #define EAIFAMNOSUPPORT EAI_FAMILY
+ #endif