Commits

Brandon Mitchell committed d7b3fb5

Do not define _POSIX_SOURCE 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*/
-#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>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.