summarylogtreecommitdiffstats
path: root/a9f41cd8b8f5b04c0c66c6d94f96a9725943831e.patch
diff options
context:
space:
mode:
authorTasos Sahanidis2020-08-05 15:41:37 +0300
committerTasos Sahanidis2020-08-05 15:41:37 +0300
commit007fe36459ad6aed83483b841f2091e4eca68d34 (patch)
tree956031d4c6618933f2a79f94c0516e8b6bde64cd /a9f41cd8b8f5b04c0c66c6d94f96a9725943831e.patch
parent10ad78d7ef156693d2fc27912aa866d326b53266 (diff)
downloadaur-007fe36459ad6aed83483b841f2091e4eca68d34.tar.gz
Backport gcc 10 fix
Diffstat (limited to 'a9f41cd8b8f5b04c0c66c6d94f96a9725943831e.patch')
-rw-r--r--a9f41cd8b8f5b04c0c66c6d94f96a9725943831e.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/a9f41cd8b8f5b04c0c66c6d94f96a9725943831e.patch b/a9f41cd8b8f5b04c0c66c6d94f96a9725943831e.patch
new file mode 100644
index 000000000000..e070471cdc02
--- /dev/null
+++ b/a9f41cd8b8f5b04c0c66c6d94f96a9725943831e.patch
@@ -0,0 +1,28 @@
+From a9f41cd8b8f5b04c0c66c6d94f96a9725943831e Mon Sep 17 00:00:00 2001
+From: Erik Zeek <zeekec@gmail.com>
+Date: Tue, 12 May 2020 09:56:49 -0600
+Subject: [PATCH] Fix gcc-10/-fno-common error
+
+gcc-10 now defaults to -fno-common and does not automatically add extern
+to variables declared in headers.
+
+https://gcc.gnu.org/gcc-10/porting_to.html
+
+Signed-off-by: Erik Zeek <zeekec@gmail.com>
+---
+ src/daemon/devnode.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/daemon/devnode.h b/src/daemon/devnode.h
+index a0b3a931..349e778d 100644
+--- a/src/daemon/devnode.h
++++ b/src/daemon/devnode.h
+@@ -5,7 +5,7 @@
+ #include "usb.h"
+
+ /// Device path base ("/dev/input/ckb" or "/var/run/ckb")
+-const char *const devpath;
++extern const char *const devpath;
+
+ /// Group ID for the control nodes. -1 to give read/write access to everybody
+ extern long gid;