7 Star 0 Fork 19

src-openEuler/fuse

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0000-fix-compile-error-because-of-ns-colliding.patch 867 Bytes
一键复制 编辑 原始数据 按行查看 历史
liuzhiqiang 提交于 2020-06-30 09:35 . fuse: renumber patches
From 7757c9011776c5a37bee3fa0c1ca4fab7e4567b2 Mon Sep 17 00:00:00 2001
From: Shijie Luo <luoshijie1@huawei.com>
Date: Fri, 10 Jan 2020 00:55:50 +0000
Subject: [PATCH] fix compile error because of ns colliding
fix compile error because of ns colliding.
Signed-off-by: Shijie Luo <luoshijie1@huawei.com>
---
include/fuse_kernel.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
index c632b58..9e02fe3 100644
--- a/include/fuse_kernel.h
+++ b/include/fuse_kernel.h
@@ -88,12 +88,16 @@
#ifndef _LINUX_FUSE_H
#define _LINUX_FUSE_H
-#include <sys/types.h>
+#ifdef __linux__
+#include <linux/types.h>
+#else
+#include <stdint.h>
#define __u64 uint64_t
#define __s64 int64_t
#define __u32 uint32_t
#define __s32 int32_t
#define __u16 uint16_t
+#endif
/*
* Version negotiation:
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/fuse.git
git@gitee.com:src-openeuler/fuse.git
src-openeuler
fuse
fuse
master

搜索帮助