aboutsummaryrefslogtreecommitdiff
path: root/src/dumpOSC.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dumpOSC.c')
-rw-r--r--src/dumpOSC.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dumpOSC.c b/src/dumpOSC.c
index d495442..81f5b13 100644
--- a/src/dumpOSC.c
+++ b/src/dumpOSC.c
@@ -95,6 +95,7 @@ The OSC webpage is http://cnmat.cnmat.berkeley.edu/OpenSoundControl
#include <ctype.h>
#include <signal.h>
#include <stdio.h>
+ #include <ws2tcpip.h>
#else
#include <stdio.h>
#include <string.h>
@@ -306,12 +307,11 @@ static void *dumpOSC_new(t_symbol *compatflag,
struct ip_mreq mreq;
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) {
+ 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)
{