From 9d5543aa6b8789594ca7567436104ed45a8a4a8e Mon Sep 17 00:00:00 2001 From: cnangel Date: Sun, 31 May 2020 19:13:54 +0800 Subject: [PATCH] fixed fuse options struct for compile --- .../src/main/native/fuse-dfs/fuse_options.c | 1 + .../src/main/native/fuse-dfs/fuse_options.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_options.c b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_options.c index 8461ce40f91..5273f51b1c5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_options.c +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_options.c @@ -18,6 +18,7 @@ #include "fuse_context_handle.h" #include "fuse_dfs.h" +#define __FUSE_OPTIONS_STRUCT__ #include "fuse_options.h" #include diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_options.h b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_options.h index 4bfc2355259..2d6e3f52c8d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_options.h +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_options.h @@ -20,6 +20,10 @@ #define __FUSE_OPTIONS_H__ /** options for fuse_opt.h */ +#ifndef __FUSE_OPTIONS_STRUCT__ +#define __FUSE_OPTIONS_STRUCT__ +extern +#endif struct options { char* protected; char* nn_uri;