aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/fvwm95
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-11-01 07:47:22 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-11-01 07:47:22 +0000
commitd242f8df42d991db261a151d3b55e1e1ce430b65 (patch)
treeddd9e72ec3ab1591785e1bef0304fcfb68ac37f3 /x11-wm/fvwm95
parentf7f9fc355f18dff2127af3fb01835d4018e6afa2 (diff)
downloadports-d242f8df42d991db261a151d3b55e1e1ce430b65.tar.gz
ports-d242f8df42d991db261a151d3b55e1e1ce430b65.zip
. Unbreak compilation on 5.x (gcc 3.3).
PR: 58719 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Notes
Notes: svn path=/head/; revision=92769
Diffstat (limited to 'x11-wm/fvwm95')
-rw-r--r--x11-wm/fvwm95/files/patch-modules-FvwmIconMan-FvwmIconMan.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/x11-wm/fvwm95/files/patch-modules-FvwmIconMan-FvwmIconMan.c b/x11-wm/fvwm95/files/patch-modules-FvwmIconMan-FvwmIconMan.c
new file mode 100644
index 000000000000..ff022d3d9f69
--- /dev/null
+++ b/x11-wm/fvwm95/files/patch-modules-FvwmIconMan-FvwmIconMan.c
@@ -0,0 +1,36 @@
+$FreeBSD$
+
+--- modules/FvwmIconMan/FvwmIconMan.c.orig Thu Oct 30 12:53:01 2003
++++ modules/FvwmIconMan/FvwmIconMan.c Thu Oct 30 13:10:36 2003
+@@ -315,6 +315,23 @@
+ return copy_string (s1, s2);
+ }
+
++#if __GNUC__ > 2
++#define SET_MANAGER(manager,field,value) \
++ do { \
++ int id = manager; \
++ if (id == -1) { \
++ for (id = 0; id < globals.num_managers; id++) { \
++ globals.managers[id].field = value; \
++ } \
++ } \
++ else if (id < globals.num_managers) { \
++ globals.managers[id].field = value; \
++ } \
++ else { \
++ ConsoleMessage ("Internal error in SET_MANAGER: %d\n", id); \
++ } \
++ } while (0)
++#else
+ #define SET_MANAGER(manager,field,value) \
+ do { \
+ int id = manager; \
+@@ -330,6 +347,7 @@
+ ConsoleMessage ("Internal error in SET_MANAGER: %d\n", id); \
+ } \
+ } while (0)
++#endif /* GCC 2 */
+
+ static void read_in_resources (char *file)
+ {