[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #49895] Incorrect configuration detection in lwip/dns.
From: |
Thomas Mueller |
Subject: |
[lwip-devel] [bug #49895] Incorrect configuration detection in lwip/dns.h |
Date: |
Tue, 20 Dec 2016 11:47:11 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; FreeBSD amd64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.nongnu.org/bugs/?49895>
Summary: Incorrect configuration detection in lwip/dns.h
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: tmu
Submitted on: Tue 20 Dec 2016 11:47:10 AM GMT
Category: DNS
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: 2.0.0
_______________________________________________________
Details:
src/include/lwip/dns.h uses "#if defined" to test for LWIP_IPV4
configuration instead of "#if".
diff --git a/src/include/lwip/dns.h b/src/include/lwip/dns.h
index 3753a53a..2d147afa 100644
--- a/src/include/lwip/dns.h
+++ b/src/include/lwip/dns.h
@@ -61,7 +61,7 @@ extern "C" {
#ifndef LWIP_DNS_ADDRTYPE_DEFAULT
#define LWIP_DNS_ADDRTYPE_DEFAULT LWIP_DNS_ADDRTYPE_IPV4_IPV6
#endif
-#elif defined(LWIP_IPV4)
+#elif LWIP_IPV4
#define LWIP_DNS_ADDRTYPE_DEFAULT LWIP_DNS_ADDRTYPE_IPV4
#else
#define LWIP_DNS_ADDRTYPE_DEFAULT LWIP_DNS_ADDRTYPE_IPV6
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?49895>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #49895] Incorrect configuration detection in lwip/dns.h,
Thomas Mueller <=