diff --git a/applications/present3D/Cluster.cpp b/applications/present3D/Cluster.cpp index 1b746a167..361dfe862 100644 --- a/applications/present3D/Cluster.cpp +++ b/applications/present3D/Cluster.cpp @@ -33,7 +33,7 @@ #if defined(__linux) #include #include -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) #include #include #elif defined(__sgi) @@ -336,7 +336,8 @@ void Receiver::sync( void ) return; } -#if defined(__linux) || defined(__FreeBSD__) || defined( __APPLE__ ) +#if defined(__linux) || defined(__FreeBSD__) || defined( __APPLE__ ) || \ + defined(__DragonFly__) socklen_t #else int diff --git a/src/osgDB/FileUtils.cpp b/src/osgDB/FileUtils.cpp index a018675d6..3ecd24e3c 100644 --- a/src/osgDB/FileUtils.cpp +++ b/src/osgDB/FileUtils.cpp @@ -76,7 +76,8 @@ typedef char TCHAR; #if (MAC_OS_X_VERSION_MAX_ALLOWED <= 1040) #define stat64 stat #endif -#elif defined(__CYGWIN__) || defined(__FreeBSD__) || (defined(__hpux) && !defined(_LARGEFILE64_SOURCE)) +#elif defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__DragonFly__) || \ + (defined(__hpux) && !defined(_LARGEFILE64_SOURCE)) #define stat64 stat #endif