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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user