diff options
author | Tim Rice <tim@multitalents.net> | 2008-11-18 21:26:41 -0800 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2008-11-18 21:26:41 -0800 |
commit | 0f4d2c02f275ad9f80ccd7435ffb407a8be61e9a (patch) | |
tree | a43f4cd82ace12ebb5ab6490d62f13469dd16263 /addrmatch.c | |
parent | edecb37a4b7e1b31f69139344af927e602f31c11 (diff) |
- (tim) [addrmatch.c configure.ac] Some platforms do not have sin6_scope_id
member of sockaddr_in6. Also reported in Bug 1491 by David Leonard. OK and
feedback by djm@
Diffstat (limited to 'addrmatch.c')
-rw-r--r-- | addrmatch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addrmatch.c b/addrmatch.c index 2086afe84..f3c861a1f 100644 --- a/addrmatch.c +++ b/addrmatch.c | |||
@@ -97,7 +97,9 @@ addr_sa_to_xaddr(struct sockaddr *sa, socklen_t slen, struct xaddr *xa) | |||
97 | return -1; | 97 | return -1; |
98 | xa->af = AF_INET6; | 98 | xa->af = AF_INET6; |
99 | memcpy(&xa->v6, &in6->sin6_addr, sizeof(xa->v6)); | 99 | memcpy(&xa->v6, &in6->sin6_addr, sizeof(xa->v6)); |
100 | #ifdef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID | ||
100 | xa->scope_id = in6->sin6_scope_id; | 101 | xa->scope_id = in6->sin6_scope_id; |
102 | #endif | ||
101 | break; | 103 | break; |
102 | default: | 104 | default: |
103 | return -1; | 105 | return -1; |