diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 1ea7b594e5..d417f12da8 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -36,6 +36,14 @@ #include #include #endif +#ifdef __NETBSD__ +#ifndef _NETBSD_SOURCE +#define _NETBSD_SOURCE +#endif +#ifndef _LIBC +#define _LIBC +#endif +#endif #include #include