Cast fourth argument to setsockopt on MinGW.
authorSimon Josefsson <simon@josefsson.org>
Tue, 22 Apr 2008 08:57:31 +0000 (10:57 +0200)
committerSimon Josefsson <simon@josefsson.org>
Tue, 22 Apr 2008 08:57:31 +0000 (10:57 +0200)
ChangeLog
lib/sys_socket.in.h

index 9775d1f4198b430adc19a2c1491bef7e44d35ff0..76cb764118bbaaf1e6ffe69657d37de076d1b35a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-22  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
+       parameter to void* as per POSIX standard (MinGW uses char*).
+
 2008-04-21  Bruno Haible  <bruno@clisp.org>
 
        * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
index d94f425fcbdb295b0eb1b128810e5e4de8160241..cb84220fe8789c5be874af2146db9dc4f817e2c7 100644 (file)
 #  define ESHUTDOWN               WSAESHUTDOWN
 # endif
 
+# if defined _WIN32 || defined __WIN32__
+#  define setsockopt(a,b,c,d,e) setsockopt(a,b,c,(const void*)(d),e)
+# endif
+
 #endif /* HAVE_SYS_SOCKET_H */
 
 #endif /* _GL_SYS_SOCKET_H */