Add POSIX Linux support for net_if and netdb.

This commit is contained in:
Isaac Andrade
2024-09-02 14:25:32 -06:00
parent a248d49f34
commit 35f961d80f
2 changed files with 37 additions and 3 deletions
+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.