freebsd-ports/net/wmping/files/patch-wmgeneral.c
Robert Clausecker 14df860062 net/wmping: fix the port's build against -fno-common
Ensure that there is only one variable definition per each object, as
the C (and C++) standards mandated for years and compilers started to
enforce as of recently (Clang 11, GCC 10).

While here, define LICENSE, add missing USE_XORG components, and fix
-Wformat-security warnings, adding newline to printed error messages
for clarity and better look.

PR:	267587
2022-11-07 08:01:32 +00:00

11 lines
187 B
C

--- wmgeneral.c.orig 2003-12-02 16:45:19 UTC
+++ wmgeneral.c
@@ -55,6 +55,7 @@
/* X11 Variables */
/*****************/
+Display *display;
Window Root;
int screen;
int x_fd;