blob: 22adaff7293c5d92d84d1be5c94c819d1a015b0f [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From 8b3792830f4930fee7fbb00c854d9766f2b74dca Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Jul 2019 11:35:38 -0700
4Subject: [PATCH] Fixed build failure with glibc 2.30 due to dropped
5 RES_INSECURE1/2 macros
6
7see [1]
8
9[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=333221862ecbebde60dd16e7ca17d26444e62f50
10
11Upstream-Status: Pending
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/dns/dns_str_resflags.c | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17diff --git a/src/dns/dns_str_resflags.c b/src/dns/dns_str_resflags.c
18index 5f2cce5..df32345 100644
19--- a/src/dns/dns_str_resflags.c
20+++ b/src/dns/dns_str_resflags.c
21@@ -60,10 +60,16 @@ static const LONG_NAME_MASK resflag_table[] = {
22 "RES_DEFNAMES", RES_DEFNAMES,
23 "RES_STAYOPEN", RES_STAYOPEN,
24 "RES_DNSRCH", RES_DNSRCH,
25+#ifdef RES_INSECURE1
26 "RES_INSECURE1", RES_INSECURE1,
27+#endif
28+#ifdef RES_INSECURE2
29 "RES_INSECURE2", RES_INSECURE2,
30+#endif
31 "RES_NOALIASES", RES_NOALIASES,
32+#ifdef RES_USE_INET6
33 "RES_USE_INET6", RES_USE_INET6,
34+#endif
35 #ifdef RES_ROTATE
36 "RES_ROTATE", RES_ROTATE,
37 #endif