libdill: fix build with gcc9
This commit is contained in:
parent
05ed1743cc
commit
9ba9c2b200
|
@ -0,0 +1,31 @@
|
|||
From 195809f97a368380487259dca3f0926d29a298a6 Mon Sep 17 00:00:00 2001
|
||||
From: Adel Mamin <adel.mamin@exafore.com>
|
||||
Date: Thu, 18 Jul 2019 12:51:35 +0300
|
||||
Subject: [PATCH] Fix compilation for gcc 9.1.0
|
||||
|
||||
---
|
||||
dns/dns.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dns/dns.h b/dns/dns.h
|
||||
index 7eb3e7d6..dc88ab51 100644
|
||||
--- dns/dns.h
|
||||
+++ dns/dns.h
|
||||
@@ -496,7 +496,7 @@ size_t dns_rr_print(void *, size_t, struct dns_rr *, struct dns_packet *, int *)
|
||||
|
||||
|
||||
#define dns_rr_i_new(P, ...) \
|
||||
- dns_rr_i_init(&dns_quietinit((struct dns_rr_i){ 0, __VA_ARGS__ }), (P))
|
||||
+ dns_rr_i_init(dns_quietinit(&(struct dns_rr_i){ 0, __VA_ARGS__ }), (P))
|
||||
|
||||
struct dns_rr_i {
|
||||
enum dns_section section;
|
||||
@@ -1006,7 +1006,7 @@ void dns_cache_close(struct dns_cache *);
|
||||
#define DNS_OPTS_INITIALIZER { DNS_OPTS_INITIALIZER_ }
|
||||
#define DNS_OPTS_INIT(...) { DNS_OPTS_INITIALIZER_, __VA_ARGS__ }
|
||||
|
||||
-#define dns_opts(...) (&dns_quietinit((struct dns_options)DNS_OPTS_INIT(__VA_ARGS__)))
|
||||
+#define dns_opts(...) (dns_quietinit(&(struct dns_options)DNS_OPTS_INIT(__VA_ARGS__)))
|
||||
|
||||
struct dns_options {
|
||||
/*
|
Loading…
Reference in New Issue