Add POSIX Linux support for net_if and netdb.

This commit is contained in:
Isaac Andrade committed 2024-09-02 14:25:32 -06:00
1 parent a248d49f34
commit 35f961d80f
2 files changed
+37 -3

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ foreign lib {
if_freenameindex :: proc(ptr: ^if_nameindex_t) ---
}
when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS == .OpenBSD {
when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS == .OpenBSD || ODIN_OS == .Linux {
// NOTE: `_t` suffix added due to name conflict.