void-packages/srcpkgs/libdill/patches/gcc9.patch

32 lines
1.1 KiB
Diff
Raw Normal View History

2020-01-01 21:55:58 +01:00
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 {
/*