]> sjero.net Git - wget/blobdiff - src/http.c
Remove version.h; we generate version.c these days.
[wget] / src / http.c
index 4e49ed4fd1ce0748e598890656a8eb94da2d9de9..974951a1c580357866741f8b0630d6afc138f425 100644 (file)
@@ -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);     \