Jinoh Kang (@iamahuman) commented about dlls/wpcap/unixlib.h:
struct sockaddr_hdr {
- unsigned short sa_family;
- unsigned char sa_len;
- unsigned char sa_family;
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.