From 6ded697b42a2f40a96c774975e36e99897195aec Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Thu, 5 Sep 1996 13:32:25 +0000 Subject: Premiere compilation. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@956 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/win32unix/sockopt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'otherlibs/win32unix/sockopt.c') 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 -#include "unixwin.h" +#include "unixsupport.h" #include #include @@ -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; } -- cgit v1.2.3-70-g09d2