Commits

Brandon Mitchell  committed d7b3fb5

Do not define _POSIX_SOURCE on FreeBSD.

  • Participants
  • Parent commits b514ca7
  • Branches freebsd

Comments (0)

Files changed (1)

File base/core/lib/unix_stubs.c

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