]> git.lyx.org Git - features.git/commitdiff
Enable compilation of LyX with DragonFly BSD.
authorAngus Leeming <leeming@lyx.org>
Wed, 24 Aug 2005 20:43:03 +0000 (20:43 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 24 Aug 2005 20:43:03 +0000 (20:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10405 a592a061-630c-0410-9148-cb99ea01b6c8

boost/boost/config/platform/bsd.hpp
boost/boost/config/select_platform_config.hpp
boost/boost/integer_traits.hpp

index 4f04ed2a0337c4dec3ca87ab066fb2b7a92be8d2..38017c99bfe22eeee5c7d2ea676b7fe33751b1fb 100644 (file)
@@ -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 <nl_types.h> but does not
 // advertise the fact in <unistd.h>:
 //
-#if defined(__FreeBSD__) && (__FreeBSD__ >= 3)
+#if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) || defined(__DragonFly__)
 #  define BOOST_HAS_NL_TYPES_H
 #endif
 
index 5699b2a2ae420e9473aa9e055cd2edb5e6d5c6c5..c8540c035cccfab1e7cbfa35a486dce297669c9f 100644 (file)
@@ -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"
 
index 36aa4dc0decc168a751a0f1f2eafb2ea83844ec5..f21a968979711d91b0d6cb533565cd874b7bf4f3 100644 (file)
@@ -96,6 +96,7 @@ class integer_traits<wchar_t>
     || (defined(__OpenBSD__) && defined(__GNUC__))\
     || (defined(__NetBSD__) && defined(__GNUC__))\
     || (defined(__FreeBSD__) && defined(__GNUC__))\
+    || (defined(__DragonFly__) && defined(__GNUC__))\
     || (defined(__hpux) && defined(__GNUC__) && (__GNUC__ == 3) && !defined(__SGI_STL_PORT))
     // No WCHAR_MIN and WCHAR_MAX, wchar_t has the same range as int.
     //  - SGI MIPSpro with native library