On Mon Oct 10 13:42:53 2022 +0000, Jinoh Kang wrote:
We should check BSD variants instead, like this:
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
Another option would be to check the existence of `sa_len` in `struct sockaddr` via autoconf, but glibc doesn't seem to do that.
This does seem like a good option going forward but implies that there are only 2 types of sockaddr structs host libpcap might return (which might very well be true though for all operating systems wine is supposed to work on)