diff --git a/src/connection.h b/src/connection.h index 9d7b1605..5bf62bac 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 ef3ce73c..115717bc 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 86f20a61..5b33c33e 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 {