File: fix-ftbfs-gcc-10.patch

package info (click to toggle)
openbox-menu 0.8.0%2Bhg20161009-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 232 kB
  • sloc: ansic: 717; makefile: 43; sh: 1
file content (27 lines) | stat: -rw-r--r-- 626 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix FTBFS with gcc-10
Author: Mateusz Łukasik <mati75@linuxmint.pl>
Bug-Debian: https://bugs.debian.org/957633
Last-Update: 2020-08-13

--- a/src/openbox-menu.h
+++ b/src/openbox-menu.h
@@ -83,7 +83,7 @@ gboolean context_get_persistent (OB_Menu
 void context_free(OB_Menu *);
 
 #ifdef WITH_ICONS
-	GtkIconTheme *icon_theme;
+	extern GtkIconTheme *icon_theme;
 #endif
 
 #endif // __OPENBOXMENU_APP__
--- a/src/utils.c
+++ b/src/utils.c
@@ -168,7 +168,7 @@ clean_exec (MenuCacheApp *app)
 
 #if WITH_ICONS
 
-extern GtkIconTheme *icon_theme;
+GtkIconTheme *icon_theme;
 
 /****f* utils/item_icon_path
  * OUTPUT