From af5c72ccd0319187bda6fd117b1a3c87e4e03394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Tue, 22 Sep 2020 11:56:27 +0000 Subject: Fix build with -fno-common While here add a license (extracted from the README file). Redistribution is only allowed free of charge. --- sysutils/xsysstats/files/patch-xsysstats.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'sysutils/xsysstats/files/patch-xsysstats.h') diff --git a/sysutils/xsysstats/files/patch-xsysstats.h b/sysutils/xsysstats/files/patch-xsysstats.h index a7893e2917aa..290232f4a1fd 100644 --- a/sysutils/xsysstats/files/patch-xsysstats.h +++ b/sysutils/xsysstats/files/patch-xsysstats.h @@ -1,5 +1,5 @@ ---- xsysstats.h.orig Tue May 30 08:46:20 2000 -+++ xsysstats.h Sat Nov 9 08:43:29 2002 +--- xsysstats.h.orig 2000-05-30 06:46:20 UTC ++++ xsysstats.h @@ -15,12 +15,9 @@ #include #include @@ -13,7 +13,19 @@ #include #include -@@ -138,7 +135,7 @@ +@@ -115,8 +112,10 @@ struct graph_info { + short host_offset; + short window; /* What window to put this graph in */ + int max_val; /* maximum value this graph ever reached */ +-} *graphs; ++}; + ++extern struct graph_info *graphs; ++ + struct Xss_Window { + short x, y; /* Upper left corner of window */ + short width,height; /* width and height of the window. height +@@ -138,7 +137,7 @@ struct Host_Info { char *name; /*Name of the host */ #ifdef USE_NEW_RSTAT CLIENT *client; /* client connection for rstat */ -- cgit v1.2.3