Update of /cvsroot/pure-data/externals/OSCx/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24804
Modified Files: dumpOSC.c htmsocket.c Log Message: checked in Stephen Sinclair's MinGW fix, patch 1629160
Index: htmsocket.c =================================================================== RCS file: /cvsroot/pure-data/externals/OSCx/src/htmsocket.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** htmsocket.c 2 Jan 2007 01:38:20 -0000 1.6 --- htmsocket.c 17 Jan 2007 15:38:05 -0000 1.7 *************** *** 56,59 **** --- 56,60 ---- #include "OSC-common.h" #include <stdio.h> + #include <ws2tcpip.h> #else #include <stdio.h>
Index: dumpOSC.c =================================================================== RCS file: /cvsroot/pure-data/externals/OSCx/src/dumpOSC.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** dumpOSC.c 2 Jan 2007 01:38:20 -0000 1.8 --- dumpOSC.c 17 Jan 2007 15:38:05 -0000 1.9 *************** *** 96,99 **** --- 96,100 ---- #include <signal.h> #include <stdio.h> + #include <ws2tcpip.h> #else #include <stdio.h> *************** *** 307,316 **** mreq.imr_multiaddr.s_addr = inet_addr(castgroup->s_name); mreq.imr_interface.s_addr = htonl(INADDR_ANY); ! if (setsockopt(sockfd,IPPROTO_IP,IP_ADD_MEMBERSHIP,&mreq,sizeof(mreq)) < 0) { sys_sockerror("setsockopt"); } }
- /* name the socket */ if (bind(sockfd, (struct sockaddr *)&server, sizeof(server)) < 0) --- 308,316 ---- mreq.imr_multiaddr.s_addr = inet_addr(castgroup->s_name); mreq.imr_interface.s_addr = htonl(INADDR_ANY); ! if (setsockopt(sockfd,IPPROTO_IP,IP_ADD_MEMBERSHIP,(char*)&mreq,sizeof(mreq)) < 0) { sys_sockerror("setsockopt"); } }
/* name the socket */ if (bind(sockfd, (struct sockaddr *)&server, sizeof(server)) < 0)