X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=974951a1c580357866741f8b0630d6afc138f425;hp=4e49ed4fd1ce0748e598890656a8eb94da2d9de9;hb=ae042e99cffce562d8595fc884302c4326228b44;hpb=c2fe2f415960d9bfeef045f651d957f60bbf8f9b diff --git a/src/http.c b/src/http.c index 4e49ed4f..974951a1 100644 --- a/src/http.c +++ b/src/http.c @@ -66,12 +66,12 @@ as that of the covered work. */ #include "test.h" #endif -#include "version.h" - #ifdef __VMS # include "vms.h" #endif /* def __VMS */ +extern char *version_string; + /* Forward decls. */ struct http_stat; static char *create_authorization_line (const char *, const char *, @@ -1350,7 +1350,7 @@ free_hstat (struct http_stat *hs) if (!opt.useragent) \ request_set_header (req, "User-Agent", \ aprintf ("Wget/%s (VMS %s %s)", \ - VERSION_STRING, vms_arch(), vms_vers()), \ + version_string, vms_arch(), vms_vers()), \ rel_value); \ else if (*opt.useragent) \ request_set_header (req, "User-Agent", opt.useragent, rel_none); \ @@ -1360,7 +1360,7 @@ free_hstat (struct http_stat *hs) if (!opt.useragent) \ request_set_header (req, "User-Agent", \ aprintf ("Wget/%s (%s)", \ - VERSION_STRING, OS_TYPE), \ + version_string, OS_TYPE), \ rel_value); \ else if (*opt.useragent) \ request_set_header (req, "User-Agent", opt.useragent, rel_none); \