From 57a4ec31d10d8b30a465354567b010ed726189f6 Mon Sep 17 00:00:00 2001 From: Alexander Alashkin Date: Thu, 30 Mar 2017 15:02:21 +0300 Subject: [PATCH] Fix MinGW compilation PUBLISHED_FROM=66b2dee87dc50de5f2891dee789beec89c3f6fb4 --- mongoose.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mongoose.h b/mongoose.h index eb18954b..6dbe7659 100644 --- a/mongoose.h +++ b/mongoose.h @@ -195,6 +195,7 @@ #include #include #include +#include #ifdef _MSC_VER #pragma comment(lib, "ws2_32.lib") /* Linking with winsock library */ @@ -221,13 +222,13 @@ #define __func__ __FILE__ ":" STR(__LINE__) #endif #define snprintf _snprintf -#define fileno _fileno #define vsnprintf _vsnprintf #define sleep(x) Sleep((x) *1000) #define to64(x) _atoi64(x) #if !defined(__MINGW32__) && !defined(__MINGW64__) #define popen(x, y) _popen((x), (y)) #define pclose(x) _pclose(x) +#define fileno _fileno #endif #define rmdir _rmdir #if defined(_MSC_VER) && _MSC_VER >= 1400