diff --git a/src/osgPlugins/net/sockinet.cpp b/src/osgPlugins/net/sockinet.cpp index 3bace2f5f..87de66100 100644 --- a/src/osgPlugins/net/sockinet.cpp +++ b/src/osgPlugins/net/sockinet.cpp @@ -34,7 +34,7 @@ // The constructors of isockinet, osockinet and iosockinet are changed. #include "sockinet.h" -#if defined(__APPLE) +#if defined(__APPLE__) typedef int socklen_t; #endif diff --git a/src/osgPlugins/net/sockstream.cpp b/src/osgPlugins/net/sockstream.cpp index 3da9a914c..b11c84df6 100644 --- a/src/osgPlugins/net/sockstream.cpp +++ b/src/osgPlugins/net/sockstream.cpp @@ -64,7 +64,7 @@ #include #include #if defined(__APPLE__) -#typedef int socklen_t; +typedef int socklen_t; #endif #ifndef WIN32