--- a/ports/sysdeps/unix/sysv/linux/hppa/bits/socket_type.h +++ b/ports/sysdeps/unix/sysv/linux/hppa/bits/socket_type.h @@ -49,6 +49,7 @@ SOCK_CLOEXEC = 010000000, /* Atomically set close-on-exec flag for the new descriptor(s). */ #define SOCK_CLOEXEC SOCK_CLOEXEC +#undef SOCK_NONBLOCK SOCK_NONBLOCK = 0x40000000 /* Atomically mark descriptor(s) as non-blocking. */ #define SOCK_NONBLOCK SOCK_NONBLOCK --- a/ports/sysdeps/unix/sysv/linux/hppa/bits/socket_type.h +++ b/ports/sysdeps/unix/sysv/linux/hppa/bits/socket_type.h @@ -49,7 +49,9 @@ SOCK_CLOEXEC = 010000000, /* Atomically set close-on-exec flag for the new descriptor(s). */ #define SOCK_CLOEXEC SOCK_CLOEXEC +#ifndef SOCK_NONBLOCK SOCK_NONBLOCK = 0x40000000 /* Atomically mark descriptor(s) as non-blocking. */ +#endif /* SOCK_NONBLOCK */ #define SOCK_NONBLOCK SOCK_NONBLOCK };