From Mathias Froehlich, compile fix for OSX.

This commit is contained in:
Robert Osfield
2007-07-23 18:13:16 +00:00
parent 3eae87854b
commit 4a0a45ad92
2 changed files with 4 additions and 2 deletions

View File

@@ -61,7 +61,8 @@ 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(_XOPEN_SOURCE_EXTENDED)
#if (defined(__APPLE__)&&(__GNUC__<4)) || (defined(WIN32)&&!defined(__CYGWIN__)) || \
(!defined(__APPLE__) && !defined(WIN32) && !defined(_XOPEN_SOURCE_EXTENDED))
#define socklen_t int
#endif

View File

@@ -138,7 +138,8 @@ 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(_XOPEN_SOURCE_EXTENDED)
#if (defined(__APPLE__)&&(__GNUC__<4)) || (defined(WIN32)&&!defined(__CYGWIN__)) || \
(!defined(__APPLE__) && !defined(WIN32) && !defined(_XOPEN_SOURCE_EXTENDED))
#define socklen_t int
#endif