diff --git a/src/connection.h b/src/connection.h index 9d7b160529e5f46f9e22ce0be9dc3c314f79f51f..5bf62bac4b4fc98ae633dc3905ab3f3c47d00a1a 100644 --- a/src/connection.h +++ b/src/connection.h @@ -1,6 +1,8 @@ #ifndef __CONNECTION_H__ #define __CONNECTION_H__ +#include + typedef struct connection_tag { unsigned long id; diff --git a/src/main.c b/src/main.c index ef3ce73cb87f7ba041f7dce0f21f347077a1ca67..115717bce95511292f69fa9dd0c56784c91830d4 100644 --- a/src/main.c +++ b/src/main.c @@ -22,6 +22,7 @@ #ifdef _WIN32 #define snprintf _snprintf +#endif #undef CATMODULE #define CATMODULE "main" diff --git a/src/stats.c b/src/stats.c index 86f20a6176eba5490a048a5312ee40ad6ae4876d..5b33c33e4afcc8c3b31c463de2e5752bc5540f5b 100644 --- a/src/stats.c +++ b/src/stats.c @@ -19,7 +19,9 @@ #include "client.h" #include "stats.h" +#ifdef _WIN32 #define vsnprintf _vsnprintf +#endif typedef struct _event_listener_tag {