From 33845bfee4e3967e237686035545d6fe456c2ef2 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 14 Aug 2018 20:58:01 +0200 Subject: [PATCH] daemon/socket_connection: only define S_IRWXG and S_IRWXO on demand --- platform/daemon/src/socket_connection.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/daemon/src/socket_connection.c b/platform/daemon/src/socket_connection.c index 6b91f565f..132414391 100644 --- a/platform/daemon/src/socket_connection.c +++ b/platform/daemon/src/socket_connection.c @@ -84,7 +84,13 @@ struct sockaddr_un { char sun_path[UNIX_PATH_MAX]; }; // +#endif + +// has been missing on mingw32 in the past +#ifndef S_IRWXG #define S_IRWXG 0 +#endif +#ifndef S_IRWXO #define S_IRWXO 0 #endif