From 4bca2ab940ef7e3b23f94111b4d04103f751a4bf Mon Sep 17 00:00:00 2001 From: Sharan Santhanam Date: Sun, 2 Feb 2020 14:39:11 +0100 Subject: [PATCH] lwip: Add compile guard for struct ifconf Fix to disable redefinition of struct ifconf from python Signed-off-by: Sharan Santhanam Reviewed-by: Alexander Jung --- include/net/if.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/net/if.h b/include/net/if.h index 1eb11d8..4eadc6d 100644 --- a/include/net/if.h +++ b/include/net/if.h @@ -26,6 +26,7 @@ char *if_indextoname (unsigned int, char *); #define IFF_VOLATILE (IFF_LOOPBACK|IFF_POINTOPOINT|IFF_BROADCAST| \ IFF_ECHO|IFF_MASTER|IFF_SLAVE|IFF_RUNNING|IFF_LOWER_UP|IFF_DORMANT) +#if defined(_BSD_SOURCE) struct ifconf { int ifc_len; union { @@ -33,6 +34,7 @@ struct ifconf { struct ifreq *ifcu_req; } ifc_ifcu; }; +#endif /* _BSD_SOURCE */ #define ifc_buf ifc_ifcu.ifcu_buf #define ifc_req ifc_ifcu.ifcu_req -- 2.39.5