Jonas Walld?n @ Pike developers forum wrote:
Looks from /usr/include/sys/cdefs.h that we need to set __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ to something lower than 1050 (for 10.5) to avoid __DARWIN_UNIX03.
Actually, we *want* __DARWIN_UNIX03 to be set to 1.
Quoting from <sys/errno.h>: #if __DARWIN_UNIX03 || defined(KERNEL) /* This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL */ #define EOPNOTSUPP 102 /* Operation not supported on socket */ #endif /* __DARWIN_UNIX03 || KERNEL */
At least on a MacOSX Leopard Macbook we do, because that one returns 102 from the kernel incase of a not-supported error.