forked from Mirrorlandia_minetest/minetest
Fix building with MinGW
This commit is contained in:
parent
84bbe1ec6e
commit
a5287b6777
@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifndef _MSC_VER
|
#ifndef _WIN32
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#endif
|
#endif
|
||||||
#include "jthread/jevent.h"
|
#include "jthread/jevent.h"
|
||||||
@ -51,7 +51,7 @@ std::map<unsigned long, std::list<HTTPFetchResult> > g_httpfetch_results;
|
|||||||
connect_timeout = timeout * 5;
|
connect_timeout = timeout * 5;
|
||||||
|
|
||||||
useragent = std::string("Minetest ") + minetest_version_hash;
|
useragent = std::string("Minetest ") + minetest_version_hash;
|
||||||
#ifdef _MSC_VER
|
#ifdef _WIN32
|
||||||
useragent += "Windows";
|
useragent += "Windows";
|
||||||
#else
|
#else
|
||||||
struct utsname osinfo;
|
struct utsname osinfo;
|
||||||
|
Loading…
Reference in New Issue
Block a user