From 9d306256221a77edfccedbb297305bd6ad68a053 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 16 Aug 2018 11:16:16 +0100 Subject: [PATCH] Build fix for Windows. --- config.h | 5 +++-- lib/net_mosq.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index 4e7e6b60..0e1f8f60 100644 --- a/config.h +++ b/config.h @@ -19,8 +19,9 @@ # ifndef strcasecmp # define strcasecmp strcmpi # endif -#define strtok_r strtok_s -#define strerror_r(e, b, l) strerror_s(b, l, e) +# define strtok_r strtok_s +# define strerror_r(e, b, l) strerror_s(b, l, e) +typedef SSIZE_T ssize_t; #endif diff --git a/lib/net_mosq.h b/lib/net_mosq.h index 8c18c308..6a0d34ae 100644 --- a/lib/net_mosq.h +++ b/lib/net_mosq.h @@ -20,7 +20,6 @@ Contributors: #include #else #include -typedef int ssize_t; #endif #include "mosquitto_internal.h"