utimer-0.4-fno-common.patch 672 B

123456789101112131415161718192021222324252627282930
  1. --- a/src/utimer.h
  2. +++ b/src/utimer.h
  3. @@ -66,9 +66,9 @@
  4. #define TIMER_PRINT_RATE_MSEC 79
  5. #define TIMER_CHECK_RATE_MSEC 500
  6. -GMainLoop *loop;
  7. -gboolean paused;
  8. -struct termios savedttystate;
  9. -Config ut_config;
  10. +extern GMainLoop *loop;
  11. +extern gboolean paused;
  12. +extern struct termios savedttystate;
  13. +extern Config ut_config;
  14. #endif /* UTIMER_H */
  15. --- a/src/utils.c
  16. +++ b/src/utils.c
  17. @@ -36,6 +36,10 @@
  18. #include "utils.h"
  19. #include "utimer.h"
  20. +GMainLoop *loop;
  21. +gboolean paused;
  22. +struct termios savedttystate;
  23. +Config ut_config;
  24. gulong ul_add (gulong a, gulong b)
  25. {