Commits

Brandon Mitchell committed 2d1d7a6

net/if.h needs sys/socket.h on FreeBSD.

Comments (0)

Files changed (1)

base/core/lib/unix_stubs.c

 #include <string.h>
 #include <pthread.h>
 /* Darwin needs this to be included before if.h*/
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
 #define _POSIX_SOURCE
 #include <sys/socket.h>
 #endif