diff options
author | Alain Frisch <alain@frisch.fr> | 2008-07-24 05:55:21 +0000 |
---|---|---|
committer | Alain Frisch <alain@frisch.fr> | 2008-07-24 05:55:21 +0000 |
commit | 52433269173ef6261c21e2b46c1de59547c0b62a (patch) | |
tree | a4687bef4fff62618bc3f3648947fe66489715bf /otherlibs/win32unix/sockopt.c | |
parent | 1ba87b442b1fe72577a71af4192f71d969d68f99 (diff) |
Include a missing header.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8931 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/sockopt.c')
-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) |