From cecf8f838fdbc4630a5bead8f5b3588bcacb49ea Mon Sep 17 00:00:00 2001 From: Steven Lawrance Date: Wed, 30 Jan 2019 15:22:30 +0100 Subject: [PATCH] Include sys/socket.h for AF_INET definition Without this, mosquitto doesn't build on FreeBSD with websockets enabled Signed-off-by: Steven Lawrance --- src/websockets.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/websockets.c b/src/websockets.c index 6ac446f6..163c222e 100644 --- a/src/websockets.c +++ b/src/websockets.c @@ -41,6 +41,7 @@ POSSIBILITY OF SUCH DAMAGE. #include #include +#include #include extern struct mosquitto_db int_db;