--- boost/config/platform/bsd.hpp.orig 2016-09-29 01:55:08.004563000 +0200 +++ boost/config/platform/bsd.hpp 2016-09-29 01:58:41.942136000 +0200 @@ -9,11 +9,13 @@ // generic BSD config options: -#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) && !defined(__BSDSUniX__) #error "This platform is not BSD" #endif -#ifdef __FreeBSD__ +#ifdef __BSDSUniX__ +#define BOOST_PLATFORM "BSDSUniX " BOOST_STRINGIZE(__BSDSUniX__) +#elif defined(__FreeBSD__) #define BOOST_PLATFORM "FreeBSD " BOOST_STRINGIZE(__FreeBSD__) #elif defined(__NetBSD__) #define BOOST_PLATFORM "NetBSD " BOOST_STRINGIZE(__NetBSD__) @@ -28,7 +30,7 @@ // FreeBSD has but does not // advertise the fact in : // -#if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) || defined(__DragonFly__) +#if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) || defined(__DragonFly__) || defined(__BSDSUniX__) # define BOOST_HAS_NL_TYPES_H #endif @@ -55,7 +57,7 @@ #define _GLIBCXX_HAVE_SWPRINTF 1 #endif -#if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5)) \ +#if !defined(__BSDSUniX__) && !((defined(__FreeBSD__) && (__FreeBSD__ >= 5)) \ || (defined(__NetBSD_GCC__) && (__NetBSD_GCC__ >= 2095003)) || defined(__DragonFly__)) # define BOOST_NO_CWCHAR #endif