Needed to fix envoy-proxy - Add upstream patches with the ares_getaddrinfo function: * 0001-Add-initial-implementation-for-ares_getaddrinfo-112.patch * 0002-Remaining-queries-counter-fix-additional-unit-tests-.patch * 0003-Bugfix-for-ares_getaddrinfo-and-additional-unit-test.patch * 0004-Add-ares__sortaddrinfo-to-support-getaddrinfo-sorted.patch * 0005-getaddrinfo-avoid-infinite-loop-in-case-of-NXDOMAIN-.patch * 0006-getaddrinfo-callback-must-be-called-on-bad-domain-24.patch * 0007-getaddrinfo-enhancements-257.patch * 0008-Add-missing-limits.h-include-from-ares_getaddrinfo.c.patch * 0009-Increase-portability-of-ares-test-mock-ai.cc-235.patch - Add a patch which disables test failing on OBS (but passing in local environment): * 0010-Disable-failing-test.patch OBS-URL: https://build.opensuse.org/request/show/742197 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c-ares?expand=0&rev=9
36 lines
896 B
Diff
36 lines
896 B
Diff
From e65da6067e5f3524c940671dcffc966cc69f451f Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Dan=20No=C3=A9?= <dpn@google.com>
|
|
Date: Wed, 17 Jul 2019 09:29:11 -0400
|
|
Subject: [PATCH 08/10] Add missing limits.h include from ares_getaddrinfo.c
|
|
(#267)
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
This files references INT_MAX, but does not include limits.h. This can
|
|
cause a build failure on some platforms. Include limits.h if we have it.
|
|
|
|
Fix-by: Dan Noé <dpn@google.com>
|
|
---
|
|
ares_getaddrinfo.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/ares_getaddrinfo.c b/ares_getaddrinfo.c
|
|
index 86c9e71..dba5a00 100644
|
|
--- a/ares_getaddrinfo.c
|
|
+++ b/ares_getaddrinfo.c
|
|
@@ -48,6 +48,10 @@
|
|
#endif
|
|
#include <assert.h>
|
|
|
|
+#ifdef HAVE_LIMITS_H
|
|
+#include <limits.h>
|
|
+#endif
|
|
+
|
|
#include "ares.h"
|
|
#include "bitncmp.h"
|
|
#include "ares_private.h"
|
|
--
|
|
2.16.4
|
|
|