diff --git a/config.h b/config.h index 0b10a8f4..ecb4ed4f 100644 --- a/config.h +++ b/config.h @@ -28,4 +28,5 @@ #define uthash_malloc(sz) mosquitto__malloc(sz) #define uthash_free(ptr,sz) mosquitto__free(ptr) +#define _BSD_SOURCE #define _POSIX_C_SOURCE 200809L diff --git a/src/websockets.c b/src/websockets.c index 0740530c..1e513ae0 100644 --- a/src/websockets.c +++ b/src/websockets.c @@ -29,6 +29,8 @@ POSSIBILITY OF SUCH DAMAGE. #ifdef WITH_WEBSOCKETS +#include "config.h" + #include #include "mosquitto_internal.h" #include "mosquitto_broker_internal.h"