From: Sharan Santhanam Date: Sun, 2 Feb 2020 13:39:11 +0000 (+0100) Subject: lwip: Add compile guard for struct ifconf X-Git-Tag: RELEASE-0.4~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4bca2ab940ef7e3b23f94111b4d04103f751a4bf;p=unikraft%2Flibs%2Flwip.git 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 --- 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