diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2010-07-16 21:30:15 +0000 |
---|---|---|
committer | Martin Peach <mrpeach@users.sourceforge.net> | 2010-07-16 21:30:15 +0000 |
commit | d716dfe0b06dcdf21c16a107bc5426f1fececd96 (patch) | |
tree | 356f4f81464bfb84998e73a97bccf228f1d9cac3 | |
parent | 6da89627ce52d508400aefc284a451f99075541b (diff) |
MacOSX wants a struct_mreq instead of a struct_mreqn
svn path=/trunk/externals/mrpeach/; revision=13720
-rw-r--r-- | net/udpreceive.c | 8 |
1 files changed, 6 insertions, 2 deletions
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'}; |