diff options
author | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2020-09-25 15:24:42 +0000 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2020-09-25 15:24:42 +0000 |
commit | d1d2431b4b8c896893d40b5ae357713746faf6a2 (patch) | |
tree | d54caca8c58b3d4ca734a7a485c636fa17e4549a /astro/wmglobe/files/patch-src_wmglobe.c | |
parent | cb2a4eacc88f4f5c9de0a20cf9e747c6c22cda7e (diff) | |
download | ports-d1d2431b4b8c896893d40b5ae357713746faf6a2.tar.gz ports-d1d2431b4b8c896893d40b5ae357713746faf6a2.zip |
MFH: r550048
astro/wmglobe: fix 13-CURRENT build
Another instance of -fno-common issue.
Some minor build warnings fixed.
PR: 249389
Submitted by: jd.fbsd@goneja.de (maintainer)
Approved by: ports-secteam (blanket, runtime fix, -fno-common)
Notes
Notes:
svn path=/branches/2020Q3/; revision=550049
Diffstat (limited to 'astro/wmglobe/files/patch-src_wmglobe.c')
-rw-r--r-- | astro/wmglobe/files/patch-src_wmglobe.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/astro/wmglobe/files/patch-src_wmglobe.c b/astro/wmglobe/files/patch-src_wmglobe.c new file mode 100644 index 000000000000..e6148153a4ba --- /dev/null +++ b/astro/wmglobe/files/patch-src_wmglobe.c @@ -0,0 +1,29 @@ +--- src/wmglobe.c.orig 2001-08-12 15:41:22 UTC ++++ src/wmglobe.c +@@ -35,7 +35,17 @@ + #include "defnimap.xpm" + #endif + ++/* ++ * variables globales ++ */ + ++Display *dpy; ++Pixmap pix, pixmask; ++XEvent Event; ++RImage *map, *small, *mapnight; ++Window iconwin, win; ++GC NormalGC; ++double marker[MAX_MARKERS][3]; + + + +@@ -414,7 +424,7 @@ int main(int argc, char *argv[]) + if (do_something) { + if (!myRConvertImage(ctx, small, &pix)) { + fprintf(stderr, "crash !?\n"); +- fprintf(stderr, RMessageForError(RErrorCode)); ++ fprintf(stderr, "%s", RMessageForError(RErrorCode)); + exit(1); + } + wmg.pixmap = pix; |