0002-src-Fix-build-with-gcc-10.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From 844f61069896fe3f549ab425d731c061028f697c Mon Sep 17 00:00:00 2001
  2. From: Adrian Bunk <bunk@stusta.de>
  3. Date: Tue, 12 May 2020 09:44:05 +0300
  4. Subject: src: Fix build with gcc 10
  5. gcc 10 enables -fno-common by default which fails without these typedefs
  6. Signed-off-by: Adrian Bunk <bunk@stusta.de>
  7. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  8. [Retrieved from:
  9. http://git.yoctoproject.org/cgit/cgit.cgi/matchbox-window-manager/commit/?id=844f61069896fe3f549ab425d731c061028f697c]
  10. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  11. ---
  12. src/mbtheme.h | 2 +-
  13. src/structs.h | 2 +-
  14. 2 files changed, 2 insertions(+), 2 deletions(-)
  15. diff --git a/src/mbtheme.h b/src/mbtheme.h
  16. index aa9a7c5..ad03bde 100644
  17. --- a/src/mbtheme.h
  18. +++ b/src/mbtheme.h
  19. @@ -46,7 +46,7 @@ typedef struct _mb_theme_param
  20. } MBThemeParam;
  21. -enum {
  22. +typedef enum {
  23. LAYER_GRADIENT_HORIZ = 1,
  24. LAYER_GRADIENT_VERT,
  25. LAYER_LABEL,
  26. diff --git a/src/structs.h b/src/structs.h
  27. index 24985e7..8f53e72 100644
  28. --- a/src/structs.h
  29. +++ b/src/structs.h
  30. @@ -148,7 +148,7 @@
  31. /* Atoms, if you change these check ewmh_init() first */
  32. -enum {
  33. +typedef enum {
  34. WM_STATE = 0,
  35. WM_CHANGE_STATE,
  36. WM_PROTOCOLS,
  37. --
  38. cgit v1.2.2-1-g5e49