[exim-dev] [Bug 1761] 4.87_RC2 dns.c compile error on OpenBS…

Góra strony
Delete this message
Reply to this message
Autor: admin
Data:  
Dla: exim-dev
Temat: [exim-dev] [Bug 1761] 4.87_RC2 dns.c compile error on OpenBSD 5.8 - 'struct in6_addr' has no member named '__in6_u'
https://bugs.exim.org/show_bug.cgi?id=1761

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???


--- Comment #5 from Git Commit <git@???> ---
Git commit:
http://git.exim.org/exim.git/commitdiff/f794c12b6991a528c7a950b05a6d4578f1041be8

commit f794c12b6991a528c7a950b05a6d4578f1041be8
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Dec 21 16:49:35 2015 +0000
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Mon Dec 21 16:49:35 2015 +0000


    Fix build on OpenBSD.  Bug 1761
---
 src/src/dns.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


diff --git a/src/src/dns.c b/src/src/dns.c
index b55759f..e6e4fb6 100644
--- a/src/src/dns.c
+++ b/src/src/dns.c
@@ -564,7 +564,7 @@ dns_return(const uschar * name, int type, int rc)
res_state resp = os_get_dns_resolver_res();
tree_node *node = store_get_perm(sizeof(tree_node) + 290);
sprintf(CS node->name, "%.255s-%s-%lx", name, dns_text_type(type),
- resp->options);
+ (unsigned long) resp->options);
node->data.val = rc;
(void)tree_insertnode(&tree_dns_fails, node);
return rc;
@@ -613,7 +613,7 @@ have many addresses in the same domain. We rely on the
resolver and name server
caching for successful lookups. */

 sprintf(CS node_name, "%.255s-%s-%lx", name, dns_text_type(type),
-  resp->options);
+  (unsigned long) resp->options);
 previous = tree_search(tree_dns_fails, node_name);
 if (previous != NULL)
   {
@@ -1152,7 +1152,7 @@ else
     {
     struct in6_addr in6;
     int i;
-    for (i = 0; i < 16; i++) in6.__in6_u.__u6_addr8[i] = rr->data[i];
+    for (i = 0; i < 16; i++) in6.s6_addr[i] = rr->data[i];
     yield = store_get(sizeof(dns_address) + 50);
     inet_ntop(AF_INET6, &in6, CS yield->address, 50);
     yield->next = NULL;


--
You are receiving this mail because:
You are on the CC list for the bug.