From d36b6d58bf6d00933683b992a9bcdfe77f73c191 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Thu, 19 Oct 2017 11:20:30 -0700 Subject: [PATCH] Attempt (2) to resolve non-TLS h_errno build failure in Jenkins --- ext/lwip/src/api/netdb.c | 3 ++- include/lwipopts.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/lwip/src/api/netdb.c b/ext/lwip/src/api/netdb.c index deff495..d7e6bc5 100755 --- a/ext/lwip/src/api/netdb.c +++ b/ext/lwip/src/api/netdb.c @@ -57,7 +57,8 @@ struct gethostbyname_r_helper { }; /** h_errno is exported in netdb.h for access by applications. */ -#if LWIP_DNS_API_DECLARE_H_ERRNO +//#if LWIP_DNS_API_DECLARE_H_ERRNO +#ifndef h_errno int h_errno; #endif /* LWIP_DNS_API_DECLARE_H_ERRNO */ diff --git a/include/lwipopts.h b/include/lwipopts.h index ab35bab..2836bfa 100644 --- a/include/lwipopts.h +++ b/include/lwipopts.h @@ -515,7 +515,7 @@ happening sooner than they should. * transport. */ #define LWIP_DNS 1 - +#define LWIP_DNS_API_DECLARE_H_ERRNO 0 /*------------------------------------------------------------------------------ -------------------------------- UDP Options -----------------------------------