diff --git a/include/boost/config/platform/bsd.hpp b/include/boost/config/platform/bsd.hpp index 09988e0c..17496d85 100644 --- a/include/boost/config/platform/bsd.hpp +++ b/include/boost/config/platform/bsd.hpp @@ -9,7 +9,7 @@ // generic BSD config options: -#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) #error "This platform is not BSD" #endif @@ -19,6 +19,8 @@ #define BOOST_PLATFORM "NetBSD " BOOST_STRINGIZE(__NetBSD__) #elif defined(__OpenBSD__) #define BOOST_PLATFORM "OpenBSD " BOOST_STRINGIZE(__OpenBSD__) +#elif defined(__DragonFly__) +#define BOOST_PLATFORM "DragonFly " BOOST_STRINGIZE(__DragonFly__) #endif // @@ -26,7 +28,7 @@ // FreeBSD has but does not // advertise the fact in : // -#if defined(__FreeBSD__) && (__FreeBSD__ >= 3) +#if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) || defined(__DragonFly__) # define BOOST_HAS_NL_TYPES_H #endif diff --git a/include/boost/config/select_platform_config.hpp b/include/boost/config/select_platform_config.hpp index 60bfa509..2101ed43 100644 --- a/include/boost/config/select_platform_config.hpp +++ b/include/boost/config/select_platform_config.hpp @@ -17,7 +17,7 @@ // linux: # define BOOST_PLATFORM_CONFIG "boost/config/platform/linux.hpp" -#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) +#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) // BSD: # define BOOST_PLATFORM_CONFIG "boost/config/platform/bsd.hpp"