Skip to content

Commit

Permalink
Fix building with MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jan 15, 2014
1 parent 84bbe1e commit a5287b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/httpfetch.cpp
Expand Up @@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <list>
#include <map>
#include <errno.h>
#ifndef _MSC_VER
#ifndef _WIN32
#include <sys/utsname.h>
#endif
#include "jthread/jevent.h"
Expand All @@ -51,7 +51,7 @@ std::map<unsigned long, std::list<HTTPFetchResult> > g_httpfetch_results;
connect_timeout = timeout * 5;

useragent = std::string("Minetest ") + minetest_version_hash;
#ifdef _MSC_VER
#ifdef _WIN32
useragent += "Windows";
#else
struct utsname osinfo;
Expand Down

0 comments on commit a5287b6

Please sign in to comment.