diff options
-rw-r--r-- | otherlibs/win32unix/sockopt.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/otherlibs/win32unix/sockopt.c b/otherlibs/win32unix/sockopt.c index f219a4ca7..b75873e73 100644 --- a/otherlibs/win32unix/sockopt.c +++ b/otherlibs/win32unix/sockopt.c @@ -17,6 +17,7 @@ #include <mlvalues.h> #include <alloc.h> #include "unixsupport.h" +#include "socketaddr.h" enum option_type { TYPE_BOOL = 0, @@ -53,10 +54,10 @@ static struct socket_option sockopt_int[] = { { SOL_SOCKET, SO_SNDLOWAT } }; static struct socket_option sockopt_linger[] = { - { SOL_SOCKET, SO_LINGER } + { SOL_SOCKET, SO_LINGER } }; -static struct socket_option sockopt_timeval[] = { +static struct socket_option sockopt_timeval[] = { { SOL_SOCKET, SO_RCVTIMEO }, { SOL_SOCKET, SO_SNDTIMEO } }; @@ -150,10 +151,11 @@ unix_getsockopt_aux(char * name, } default: unix_error(EINVAL, name, Nothing); + return Val_unit; /* Avoid warning */ } } -CAMLexport value +CAMLexport value unix_setsockopt_aux(char * name, enum option_type ty, int level, int option, value socket, value val) |