Commit d830e982 authored by Alin Serdean's avatar Alin Serdean Committed by Gurucharan Shetty

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: default avatarAlin Gabriel Serdean <>
Acked-by: default avatarEitan Eliahu <>
Signed-off-by: default avatarGurucharan Shetty <>
parent 9b0c0dd3
......@@ -95,6 +95,13 @@ int af_inet_ifreq_ioctl(const char *name, struct ifreq *,
#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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment