summaryrefslogtreecommitdiff
path: root/lib/netlink-socket.c
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2015-09-23 17:45:09 +0000
committerGurucharan Shetty <gshetty@nicira.com>2015-09-28 08:11:22 -0700
commit9667de98d64e0f2ddcefb9fb3a650a38a30283b1 (patch)
treebb6169f29f44665b313f9f1ec6a06ce5db72e549 /lib/netlink-socket.c
parenta2cf7524787d57c7a6b616f84ce033faf68df0aa (diff)
downloadopenvswitch-9667de98d64e0f2ddcefb9fb3a650a38a30283b1.tar.gz
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>
Diffstat (limited to 'lib/netlink-socket.c')
-rw-r--r--lib/netlink-socket.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c
index 42eb232e5..f30142f73 100644
--- a/lib/netlink-socket.c
+++ b/lib/netlink-socket.c
@@ -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