From d830e982cea9b9417b89719b06794d16faafff8b Mon Sep 17 00:00:00 2001 From: Alin Serdean Date: Wed, 1 Jul 2015 19:01:44 +0000 Subject: [PATCH] Undefined symbol make_unix_socket syslog_direct_create defined in (lib/syslog-direct.c) uses make_unix_socket which is currently undefined on the windows build. We either can remove the new file from the chain but this patch proposes to define a wrapper to make_unix_socket in which we return EINVAL. This will avoid this kind of problems in the future. Signed-off-by: Alin Gabriel Serdean Acked-by: Eitan Eliahu Signed-off-by: Gurucharan Shetty --- lib/socket-util.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/socket-util.h b/lib/socket-util.h index 1178fb8ce..8015c7f30 100644 --- a/lib/socket-util.h +++ b/lib/socket-util.h @@ -95,6 +95,13 @@ int af_inet_ifreq_ioctl(const char *name, struct ifreq *, #endif #ifdef _WIN32 +static inline int make_unix_socket(int style, bool nonblock, + const char *bind_path, + const char *connect_path) +{ + return -EINVAL; +} + /* Windows defines the 'optval' argument as char * instead of void *. */ #define setsockopt(sock, level, optname, optval, optlen) \ rpl_setsockopt(sock, level, optname, optval, optlen) -- 2.20.1