summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfergus.henderson <fergushenderson@users.noreply.github.com>2010-10-08 19:33:16 +0000
committerfergus.henderson <fergushenderson@users.noreply.github.com>2010-10-08 19:33:16 +0000
commit67bd7155c3ebe92f8823939426f38d278e981155 (patch)
tree9737ee9d389523ad5f5e90e588398b3c924bded8
parentefb9527370a0e14c41017ec831955ad779cac3ad (diff)
downloaddistcc-git-67bd7155c3ebe92f8823939426f38d278e981155.tar.gz
Apply patch from Ian Kumlien <Ian.Kumlien@gmail.com>,
to fix <http://code.google.com/p/distcc/issues/detail?id=70>. This patch fixes a compile error on Gentoo Linux due to "s6_addr" being #defined by a system header file and thus not available for use as a local variable name.
-rw-r--r--src/access.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/access.c b/src/access.c
index 0e480c3..c305366 100644
--- a/src/access.c
+++ b/src/access.c
@@ -115,18 +115,18 @@ static inline void set_mask_inet(struct in_addr *addr, int mask_bits) {
* Set a v6 address, @p addr, to a mask of @p mask_size bits.
**/
static void set_mask_inet6(struct in6_addr *addr, int mask_bits) {
- uint8_t *s6_addr = addr->s6_addr;
+ uint8_t *ip6_addr = addr->s6_addr;
int allones_count = mask_bits / 8;
int i;
for (i = 0; i < allones_count; i++)
- s6_addr[i] = allones8;
+ ip6_addr[i] = allones8;
- s6_addr[i] = ~(allones8 >> (mask_bits % 8));
+ ip6_addr[i] = ~(allones8 >> (mask_bits % 8));
i++;
for (; i < 16; i++)
- s6_addr[i] = 0;
+ ip6_addr[i] = 0;
}
#endif /* ENABLE_RFC2553 */