summaryrefslogtreecommitdiff
blob: 0161c606c89136250feaceb890a5747b312c4ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
http://quake.git.sourceforge.net/git/gitweb.cgi?p=quake/quakeforge;a=commit;h=cdf5ef256583dea6caa34464f6a82222cc43d2fd

--- libs/net/nc/net_udp6.c
+++ libs/net/nc/net_udp6.c
@@ -111,10 +111,10 @@ static __attribute__ ((used)) const char rcsid[] =
 # define MAXHOSTNAMELEN	512
 #endif
 
-#ifdef __GLIBC__						// glibc macro
+#if defined(__GLIBC__) && !defined(s6_addr32)	// glibc macro
 # define s6_addr32 in6_u.u6_addr32
 # if ! __GLIBC_PREREQ (2,2)
-# define ss_family __ss_family
+#  define ss_family __ss_family
 # endif
 #endif