1 Star 0 Fork 0

jhon-hsu/libcouchbase

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0004-CCBC-954-define-EFTYPE-error-code-if-it-does-not-exi.patch 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
jhon-hsu 提交于 2021-08-29 17:38 . commit
From 3de1281757ea238ba2504411f0fb5cb3d50a1557 Mon Sep 17 00:00:00 2001
From: Sergey Avseyev <[email protected]>
Date: Fri, 13 Jul 2018 18:28:24 +0300
Subject: [PATCH] CCBC-954: define EFTYPE error code if it does not exist
libuv have defined new error code, which is not portable, so we have to add it to our list of exceptions
plugins/io/libuv/libuv_compat.h: In function 'uv_uv2syserr':
plugins/io/libuv/libuv_compat.h:200:7: error: 'EFTYPE' undeclared (first use in this function); did you mean 'UV_EFTYPE'?
UV_ERRNO_MAP(X)
^~~~~~~~~~~~
plugins/io/libuv/libuv_compat.h:199:63: note: in definition of macro 'X'
#define X(name, desc) if (status == UV_##name) { return name; }
^~~~
plugins/io/libuv/libuv_compat.h:200:7: note: each undeclared identifier is reported only once for each function it appears in
UV_ERRNO_MAP(X)
^~~~~~~~~~~~
plugins/io/libuv/libuv_compat.h:199:63: note: in definition of macro 'X'
#define X(name, desc) if (status == UV_##name) { return name; }
Related libuv change: https://github.com/libuv/libuv/commit/fe3fbd63e5dfe26c473cdd422ad216a14ae2d7e4
Change-Id: If1603dc4b7dbf65ec64fc7a5af50c3a9081166e0
---
plugins/io/libuv/libuv_compat.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/io/libuv/libuv_compat.h b/plugins/io/libuv/libuv_compat.h
index a818a21e..5d318171 100644
--- a/plugins/io/libuv/libuv_compat.h
+++ b/plugins/io/libuv/libuv_compat.h
@@ -111,6 +111,9 @@
#ifndef EAI_OVERFLOW
#define EAI_OVERFLOW EAI_FAIL
#endif
+#ifndef EFTYPE
+#define EFTYPE EAI_FAIL
+#endif
#define OK 0
--
2.18.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jhon-hsu/libcouchbase.git
[email protected]:jhon-hsu/libcouchbase.git
jhon-hsu
libcouchbase
libcouchbase
master

搜索帮助