Mac OS X: use socklen_t on darwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Darwin we need to define _BSD_SOCKLEN_T_ before including <sys/socket.h> if we want to define socklen_t structure.

Pierre

ChangeLog:
Define _BSD_SOCKLEN_T_ before including <sys/socket.h> to have the socklen_t structure


Index: programs/winedbg/gdbproxy.c
===================================================================
RCS file: /home/wine/wine/programs/winedbg/gdbproxy.c,v
retrieving revision 1.10
diff -u -r1.10 gdbproxy.c
--- programs/winedbg/gdbproxy.c	19 Apr 2003 21:27:47 -0000	1.10
+++ programs/winedbg/gdbproxy.c	11 May 2003 19:28:06 -0000
@@ -36,6 +36,8 @@
 #include <sys/poll.h>
 #include <sys/wait.h>
 #ifdef HAVE_SYS_SOCKET_H
+/* define _BSD_SOCKLEN_T_ in order to define socklen_t on darwin */
+# define _BSD_SOCKLEN_T_
 # include <sys/socket.h>
 #endif
 #include <netinet/in.h>

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux