2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

socket-util: getsockopt for Windows.

Windows defines the 'optval' argument as char * instead of void *.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Gurucharan Shetty
2014-02-19 09:11:04 -08:00
parent cbf414e501
commit 9390ef7fd5

View File

@@ -98,6 +98,14 @@ static inline int rpl_setsockopt(int sock, int level, int optname,
{
return (setsockopt)(sock, level, optname, optval, optlen);
}
#define getsockopt(sock, level, optname, optval, optlen) \
rpl_getsockopt(sock, level, optname, optval, optlen)
static inline int rpl_getsockopt(int sock, int level, int optname,
void *optval, socklen_t *optlen)
{
return (getsockopt)(sock, level, optname, optval, optlen);
}
#endif
/* In Windows platform, errno is not set for socket calls.