From 62d99ecbc2a359c0703894c4a0bb10fcca3e5495 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 23 Apr 2018 23:56:39 +0100 Subject: [PATCH] Build fixes. --- config.h | 1 + src/websockets.c | 2 ++ 2 files changed, 3 insertions(+) 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"