mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
nl_sock_fd is not used under MSVC
Ifdef out nl_sock_fd to make users aware it is not used. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
This commit is contained in:
committed by
Gurucharan Shetty
parent
a2cf752478
commit
9667de98d6
@@ -1237,6 +1237,7 @@ nl_sock_wait(const struct nl_sock *sock, short int events)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
/* Returns the underlying fd for 'sock', for use in "poll()"-like operations
|
||||
* that can't use nl_sock_wait().
|
||||
*
|
||||
@@ -1247,13 +1248,9 @@ nl_sock_wait(const struct nl_sock *sock, short int events)
|
||||
int
|
||||
nl_sock_fd(const struct nl_sock *sock)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
BUILD_ASSERT_DECL(sizeof sock->handle == sizeof(int));
|
||||
return (int)sock->handle;
|
||||
#else
|
||||
return sock->fd;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Returns the PID associated with this socket. */
|
||||
uint32_t
|
||||
|
Reference in New Issue
Block a user