From: Tom Grace Date: Wed, 13 Mar 2013 02:13:52 +0000 (+0100) Subject: tool_main.c: fix VMS global variable storage-class specifier X-Git-Tag: curl-7_30_0~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17c088fb458a1f902b449cef94c58f1806c288d3;p=thirdparty%2Fcurl.git tool_main.c: fix VMS global variable storage-class specifier An extern submits a psect and a global reference to the linker to point to it. Using "extern int vms_show = 0" also creates a globaldef. The use of the extern by itself does declare a psect but does not declare a globalsymbol. It does declare a globalref. But the linker needs one and only one globaldef or there is an error. --- diff --git a/src/tool_main.c b/src/tool_main.c index 95e9cc7794..4b8817a2e0 100644 --- a/src/tool_main.c +++ b/src/tool_main.c @@ -52,7 +52,7 @@ * Its value may be set in other tool_*.c source files thanks to * forward declaration present in tool_vms.h */ -static int vms_show = 0; +extern int vms_show = 0; #endif /*