diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1996-09-05 13:32:25 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1996-09-05 13:32:25 +0000 |
commit | 6ded697b42a2f40a96c774975e36e99897195aec (patch) | |
tree | 101febfe5774275c5392863fd93a004465e58bc0 /otherlibs/win32unix/sockopt.c | |
parent | b973b44d9fa9e63d5504cc59e5078411b30efe03 (diff) |
Premiere compilation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@956 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/sockopt.c')
-rw-r--r-- | otherlibs/win32unix/sockopt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/otherlibs/win32unix/sockopt.c b/otherlibs/win32unix/sockopt.c index 1cda657ed..3986b8788 100644 --- a/otherlibs/win32unix/sockopt.c +++ b/otherlibs/win32unix/sockopt.c @@ -12,7 +12,7 @@ /* $Id$ */ #include <mlvalues.h> -#include "unixwin.h" +#include "unixsupport.h" #include <winsock.h> #include <sys/types.h> @@ -26,7 +26,7 @@ value unix_getsockopt(socket, option) int optval, optsize; optsize = sizeof(optval); if (getsockopt(_get_osfhandle(Int_val(socket)), SOL_SOCKET, - sockopt[Int_val(option)], &optval, &optsize) == -1) + sockopt[Int_val(option)], (char *) &optval, &optsize) == -1) uerror("getsockopt", Nothing); return Val_int(optval); } @@ -36,7 +36,8 @@ value unix_setsockopt(socket, option, status) { int optval = Int_val(status); if (setsockopt(_get_osfhandle(Int_val(socket)), SOL_SOCKET, - sockopt[Int_val(option)], &optval, sizeof(optval)) == -1) + sockopt[Int_val(option)], + (char *) &optval, sizeof(optval)) == -1) uerror("setsockopt", Nothing); return Val_unit; } |