Index: client/clinet.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/clinet.c,v retrieving revision 1.41 diff -u -r1.41 clinet.c --- client/clinet.c 2001/08/25 10:25:33 1.41 +++ client/clinet.c 2001/08/27 18:51:24 @@ -53,6 +53,8 @@ #include #endif +#include + #include "capstr.h" #include "fcintl.h" #include "game.h" @@ -75,6 +77,7 @@ #include "clinet.h" struct connection aconnection; +struct utsname un; /************************************************************************** Close socket and cleanup. This one doesn't print a message, so should @@ -378,13 +381,19 @@ my_closesocket(s); return NULL; } + + uname(&un); my_snprintf(str,sizeof(str), - "GET %s%s%s HTTP/1.0\r\nUser-Agent: Freeciv/%s %s\r\n\r\n", + "GET %s%s%s HTTP/1.0\r\nUser-Agent: Freeciv/%s %s %s %s [%s]\r\n\r\n", proxy_url ? "" : "/", urlpath, proxy_url ? metaserver : "", VERSION_STRING, - client_string); + client_string, + un.sysname, + un.release, + un.machine + ); #ifdef HAVE_FDOPEN f=fdopen(s,"r+"); fwrite(str,1,strlen(str),f);