freebsd-ports/net/wmping/files/patch-wmgeneral.h
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

12 lines
251 B
C

--- wmgeneral.h.orig 2003-12-02 16:45:19 UTC
+++ wmgeneral.h
@@ -36,7 +36,7 @@ typedef struct {
/* Global variable */
/*******************/
-Display *display;
+extern Display *display;
/***********************/
/* Function Prototypes */