Index: source/Host/common/Socket.cpp =================================================================== --- source/Host/common/Socket.cpp +++ source/Host/common/Socket.cpp @@ -93,7 +93,11 @@ if (!child_processes_inherit) { flags |= SOCK_CLOEXEC; } +#if defined(__NetBSD__) + return ::paccept (sockfd, addr, addrlen, NULL, flags); +#else return ::accept4 (sockfd, addr, addrlen, flags); +#endif #else return ::accept (sockfd, addr, addrlen); #endif @@ -790,5 +794,3 @@ } return ""; } - -