fprintd/gcc-10.patch

35 lines
987 B
Diff
Raw Normal View History

2021-07-30 06:50:54 +00:00
diff -uprN src/main.c src/main.c
--- a/src/main.c 2018-05-25 21:59:57.000000000 +0800
+++ b/src/main.c 2021-08-03 19:22:20.936874961 +0800
@@ -34,6 +34,7 @@
#include "storage.h"
#include "file_storage.h"
+extern fp_storage store;
extern DBusGConnection *fprintd_dbus_conn;
static gboolean no_timeout = FALSE;
static gboolean g_fatal_warnings = FALSE;
diff -uprN src/storage.h src/storage.h
--- a/src/storage.h 2021-08-03 19:21:30.172006757 +0800
+++ b/src/storage.h 2021-08-03 19:21:06.431600737 +0800
@@ -44,7 +44,7 @@ struct storage {
typedef struct storage fp_storage;
/* The currently setup store */
-fp_storage store;
+extern fp_storage store;
#endif
diff -uprN src/device.c src/device.c
--- a/src/device.c 2021-08-03 19:21:01.023508246 +0800
+++ b/src/device.c 2021-08-03 19:22:03.900583598 +0800
@@ -34,6 +34,7 @@
#include "fprintd.h"
#include "storage.h"
+fp_storage store;
static char *fingers[] = {
"left-thumb",
"left-index-finger",