fuse/fix-compile-error-because-of-ns-colliding.patch

38 lines
867 B
Diff
Raw Normal View History

2020-01-11 15:28:42 +08:00
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