summaryrefslogtreecommitdiffstats
path: root/misc/utimer/utimer-0.4-fno-common.patch
diff options
context:
space:
mode:
author Andrew Clemons2021-08-14 05:28:37 +0200
committer Willy Sudiarto Raharjo2021-08-14 16:17:57 +0200
commita8d39ca8f8cf33417e087f2d3cb14f92564c6060 (patch)
tree6b3104a3b46fa7d3b9de54cdf0698f4671041f15 /misc/utimer/utimer-0.4-fno-common.patch
parenta6a2ccd3e56ac5f8d340e1e0a53f33f8bda74ed7 (diff)
downloadslackbuilds-a8d39ca8f8cf33417e087f2d3cb14f92564c6060.tar.gz
misc/utimer: Patch to build on -current.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/utimer/utimer-0.4-fno-common.patch')
-rw-r--r--misc/utimer/utimer-0.4-fno-common.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/misc/utimer/utimer-0.4-fno-common.patch b/misc/utimer/utimer-0.4-fno-common.patch
new file mode 100644
index 0000000000..a8386fe8e2
--- /dev/null
+++ b/misc/utimer/utimer-0.4-fno-common.patch
@@ -0,0 +1,29 @@
+--- a/src/utimer.h
++++ b/src/utimer.h
+@@ -66,9 +66,9 @@
+ #define TIMER_PRINT_RATE_MSEC 79
+ #define TIMER_CHECK_RATE_MSEC 500
+
+-GMainLoop *loop;
+-gboolean paused;
+-struct termios savedttystate;
+-Config ut_config;
++extern GMainLoop *loop;
++extern gboolean paused;
++extern struct termios savedttystate;
++extern Config ut_config;
+
+ #endif /* UTIMER_H */
+--- a/src/utils.c
++++ b/src/utils.c
+@@ -36,6 +36,10 @@
+ #include "utils.h"
+ #include "utimer.h"
+
++GMainLoop *loop;
++gboolean paused;
++struct termios savedttystate;
++Config ut_config;
+
+ gulong ul_add (gulong a, gulong b)
+ {