Windows defines the 'optval' argument as char * instead of void *. Signed-off-by: Gurucharan Shetty <gshe...@nicira.com> --- lib/socket-util.h | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/lib/socket-util.h b/lib/socket-util.h index 5c32033..2257759 100644 --- a/lib/socket-util.h +++ b/lib/socket-util.h @@ -100,6 +100,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. -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev