Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-25 18:32:43 +00:00
parent a76f56d06b
commit 60478f3780
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550062
3 changed files with 41 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= wmjupiter
PORTVERSION= 1.21
PORTREVISION= 1
CATEGORIES= astro windowmaker
MAINTAINER= tkuiper@inxsoft.net

View File

@ -0,0 +1,19 @@
--- xutils.c.orig 2015-12-06 02:51:22 UTC
+++ xutils.c
@@ -40,6 +40,16 @@
#include "xutils.h"
+/*
+ * Global variable
+ */
+Display *display;
+Window Root;
+Window iconwin, win;
+int screen;
+int DisplayDepth;
+GC NormalGC;
+
/*
* X11 Variables

View File

@ -0,0 +1,21 @@
--- xutils.h.orig 2015-12-06 02:51:22 UTC
+++ xutils.h
@@ -18,12 +18,12 @@ typedef struct {
/*
* Global variable
*/
-Display *display;
-Window Root;
-Window iconwin, win;
-int screen;
-int DisplayDepth;
-GC NormalGC;
+extern Display *display;
+extern Window Root;
+extern Window iconwin, win;
+extern int screen;
+extern int DisplayDepth;
+extern GC NormalGC;