aboutsummaryrefslogtreecommitdiffstats
path: root/main/unfs3/gcc-10.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-11-25 05:23:23 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-11-25 05:23:23 -0300
commit06c97c74f3a1701859a24a3d675988cb2d87f029 (patch)
tree919b91132d2f3cf080f6fc501daae295c83e01d2 /main/unfs3/gcc-10.patch
parent788bfe2fd05ad226aab174985d5561bd389d0282 (diff)
main/unfs3: partially fix build under gcc-10
Diffstat (limited to 'main/unfs3/gcc-10.patch')
-rw-r--r--main/unfs3/gcc-10.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/main/unfs3/gcc-10.patch b/main/unfs3/gcc-10.patch
new file mode 100644
index 00000000000..715cf2b9a9b
--- /dev/null
+++ b/main/unfs3/gcc-10.patch
@@ -0,0 +1,42 @@
+Upstream: Unknown, should be
+Reason: Fixes compilation under gcc-10 which has -fno-common by default
+
+diff --git a/Config/exports.h b/Config/exports.h
+index 2c5edec..1dafc36 100644
+--- a/Config/exports.h
++++ b/Config/exports.h
+@@ -22,7 +22,7 @@
+ extern exports exports_nfslist;
+ /* Options cache */
+ extern int exports_opts;
+-const char *export_path;
++extern const char *export_path;
+ extern uint32 export_fsid;
+ extern uint32 export_password_hash;
+
+diff --git a/Config/exports.y b/Config/exports.y
+index f30e8af..6b8fbf9 100644
+--- a/Config/exports.y
++++ b/Config/exports.y
+@@ -694,7 +694,7 @@ static e_host* find_host(struct in_addr remote, e_item *item,
+
+ /* options cache */
+ int exports_opts = -1;
+-const char *export_path = NULL;
++extern const char *export_path = NULL;
+ uint32 export_fsid = 0;
+ uint32 export_password_hash = 0;
+
+diff --git a/Config/y.tab.c b/Config/y.tab.c
+index b0761f4..3a61594 100644
+--- a/Config/y.tab.c
++++ b/Config/y.tab.c
+@@ -2248,7 +2248,7 @@ static e_host* find_host(struct in_addr remote, e_item *item,
+
+ /* options cache */
+ int exports_opts = -1;
+-const char *export_path = NULL;
++extern const char *export_path = NULL;
+ uint32 export_fsid = 0;
+ uint32 export_password_hash = 0;
+