From John Shue, "Recent changes to sockstream.cpp and sockinet.cpp to better deal with
various operating system differences between socklen_t and int have broken the FreeBSD build. Change was to add __FreeBSD__ to the list of defines that are checked."
This commit is contained in:
@@ -62,7 +62,7 @@ extern "C" {
|
||||
// Do not include anything below that define. That should in no case change any forward decls in
|
||||
// system headers ...
|
||||
#if (defined(__APPLE__)&&(__GNUC__<4)) || (defined(WIN32)&&!defined(__CYGWIN__)) || \
|
||||
(!defined(__APPLE__) && !defined(WIN32) && !defined(_XOPEN_SOURCE_EXTENDED))
|
||||
(!defined(__APPLE__) && !defined(WIN32) && !defined(_XOPEN_SOURCE_EXTENDED) && !defined(__FreeBSD__))
|
||||
#define socklen_t int
|
||||
#endif
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ extern "C" {
|
||||
// Do not include anything below that define. That should in no case change any forward decls in
|
||||
// system headers ...
|
||||
#if (defined(__APPLE__)&&(__GNUC__<4)) || (defined(WIN32)&&!defined(__CYGWIN__)) || \
|
||||
(!defined(__APPLE__) && !defined(WIN32) && !defined(_XOPEN_SOURCE_EXTENDED))
|
||||
(!defined(__APPLE__) && !defined(WIN32) && !defined(_XOPEN_SOURCE_EXTENDED) && !defined(__FreeBSD__))
|
||||
#define socklen_t int
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user