mlibc
mlibc copied to clipboard
options/bsd: move getifaddrs from linux to bsd
getifaddrs is also available on different BSDs. The function signatures and struct ifaddrs aligns with the current mlibc declaration.
Given that it is also supported on Linux, I am not sure that moving it is the best play - maybe we should enable it if __MLIBC_LINUX_OPTION || __MLIBC_BSD_OPTION?
Agreed.