From 9eddb7e4ca08c4b010d71234f43ecab926ababde Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Mon, 10 Jan 2005 18:11:29 +0000 Subject: [PATCH] Fix compile error on solaris --- src/mDNSUNP.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mDNSUNP.h b/src/mDNSUNP.h index 0b9d5f01..4794a41f 100644 --- a/src/mDNSUNP.h +++ b/src/mDNSUNP.h @@ -23,6 +23,9 @@ Change History (most recent first): $Log$ +Revision 1.3 2005/01/10 18:11:29 rpedde +Fix compile error on solaris + Revision 1.2 2005/01/10 01:07:01 rpedde Synchronize mDNS to Apples 58.8 drop @@ -81,7 +84,7 @@ First checkin #define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \ ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr)) #else -#define GET_SA_LEN(X) ((X).sa_family == AF_INET ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr)) +#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr)) #endif #define IFI_NAME 16 /* same as IFNAMSIZ in */