From: Christophe CURIS Date: Sun, 30 Jun 2013 14:02:34 +0000 (+0200) Subject: wmaker: Replaced local 'extern' definition by proper header include X-Git-Tag: wmaker-0.95.5~9 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/3803ae6493d3e43dba074ae7e6fe8c3ac30c5f4e wmaker: Replaced local 'extern' definition by proper header include It is dangerous to define an extern variable locally because the compiler is not able to ensure proper type definition, but including the header that defines it allows a safer situation. Signed-off-by: Christophe CURIS --- diff --git a/src/xmodifier.c b/src/xmodifier.c index 30f5a881..e114f650 100644 --- a/src/xmodifier.c +++ b/src/xmodifier.c @@ -36,9 +36,9 @@ Perpetrator: Sudish Joseph , Sept. 1997. */ #include #include +#include "WindowMaker.h" #include "xmodifier.h" -extern Display *dpy; /************************************************************************/ /* keymap handling */