From d716dfe0b06dcdf21c16a107bc5426f1fececd96 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Fri, 16 Jul 2010 21:30:15 +0000 Subject: MacOSX wants a struct_mreq instead of a struct_mreqn svn path=/trunk/externals/mrpeach/; revision=13720 --- net/udpreceive.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'net/udpreceive.c') diff --git a/net/udpreceive.c b/net/udpreceive.c index 4dc4a74..082e74a 100644 --- a/net/udpreceive.c +++ b/net/udpreceive.c @@ -101,11 +101,15 @@ static void *udpreceive_new(t_symbol *s, int argc, t_atom *argv) t_udpreceive *x; struct sockaddr_in server; struct hostent *hp; +#ifdef MACOSX + struct ip_mreq mreq; +#else struct ip_mreqn mreq; +#endif int sockfd, portno = 0; int multicast_joined = 0; - unsigned int multicast_loop_state; - unsigned int multicast_ttl; + unsigned char multicast_loop_state; + unsigned char multicast_ttl; unsigned int size; int intarg, i; char addr[256] = {'\0'}; -- cgit v1.2.1