|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT/LIBLWIP PATCH] lwip: Add compile guard for struct ifconf
Fix to disable redefinition of struct ifconf from python
Signed-off-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
---
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.7.4
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |