? bin
? stage
? tools/build/jam_src/bin.dragonfly
? tools/build/jam_src/bootstrap.gcc
Index: boost/integer_traits.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/integer_traits.hpp,v
retrieving revision 1.25
diff -u -r1.25 integer_traits.hpp
--- boost/integer_traits.hpp	4 Sep 2004 10:34:47 -0000	1.25
+++ boost/integer_traits.hpp	25 Sep 2004 22:30:31 -0000
@@ -96,6 +96,7 @@
     || (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
Index: boost/config/select_platform_config.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/config/select_platform_config.hpp,v
retrieving revision 1.6
diff -u -r1.6 select_platform_config.hpp
--- boost/config/select_platform_config.hpp	4 Oct 2003 11:28:55 -0000	1.6
+++ boost/config/select_platform_config.hpp	25 Sep 2004 22:30:31 -0000
@@ -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(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__)
 // BSD:
 #  define BOOST_PLATFORM_CONFIG "boost/config/platform/bsd.hpp"
 
Index: boost/config/platform/bsd.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/config/platform/bsd.hpp,v
retrieving revision 1.15
diff -u -r1.15 bsd.hpp
--- boost/config/platform/bsd.hpp	27 Feb 2004 13:13:00 -0000	1.15
+++ boost/config/platform/bsd.hpp	25 Sep 2004 22:30:31 -0000
@@ -9,12 +9,14 @@
 
 //  generic BSD config options:
 
-#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
+#if !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
 #error "This platform is not BSD"
 #endif
 
 #ifdef __FreeBSD__
 #define BOOST_PLATFORM "FreeBSD " BOOST_STRINGIZE(__FreeBSD__)
+#elif defined(__DragonFly__)
+#define BOOST_PLATFORM "DragonFlyBSD " BOOST_STRINGIZE(__DragonFly__)
 #elif defined(__NetBSD__)
 #define BOOST_PLATFORM "NetBSD " BOOST_STRINGIZE(__NetBSD__)
 #elif defined(__OpenBSD__)
@@ -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: boost/python/detail/config.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/python/detail/config.hpp,v
retrieving revision 1.35
diff -u -r1.35 config.hpp
--- boost/python/detail/config.hpp	21 Sep 2004 14:39:50 -0000	1.35
+++ boost/python/detail/config.hpp	25 Sep 2004 22:30:31 -0000
@@ -105,7 +105,11 @@
 #  define BOOST_PYTHON_DECL_EXCEPTION BOOST_PYTHON_DECL
 #endif
 
-#if (defined(__DECCXX_VER) && __DECCXX_VER <= 60590041)
+#if defined(__DragonFly__) && defined(__GNUC__)
+/* at DragonFly they refuse to mess up their headers for gcc */
+#define BOOST_PYTHON_OFFSETOF(s_name, s_member) \
+	(__offsetof__ (reinterpret_cast <size_t> (&reinterpret_cast <const volatile char &> (static_cast<s_name *> (0)->s_member))))
+#elif (defined(__DECCXX_VER) && __DECCXX_VER <= 60590041)
 // Replace broken Tru64/cxx offsetof macro
 # define BOOST_PYTHON_OFFSETOF(s_name, s_member) \
         ((size_t)__INTADDR__(&(((s_name *)0)->s_member)))
Index: tools/build/jam_src/jam.h
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/jam_src/jam.h,v
retrieving revision 1.14
diff -u -r1.14 jam.h
--- tools/build/jam_src/jam.h	1 Jun 2004 05:42:35 -0000	1.14
+++ tools/build/jam_src/jam.h	25 Sep 2004 22:30:37 -0000
@@ -231,10 +231,14 @@
 # define OSMINOR "OS=CYGWIN"
 # define OS_CYGWIN
 # endif
-# ifdef __FreeBSD__
+# if defined(__FreeBSD__) && !defined(__DragonFly__)
 # define OSMINOR "OS=FREEBSD"
 # define OS_FREEBSD
 # endif
+# ifdef __DragonFly__
+# define OSMINOR "OS=DRAGONFLY"
+# define OS_DRAGONFLY
+# endif
 # ifdef __DGUX__
 # define OSMINOR "OS=DGUX"
 # define OS_DGUX
@@ -394,6 +398,7 @@
 
 # if !defined(OS_BSDI) && \
      !defined(OS_FREEBSD) && \
+     !defined(OS_DRAGONFLY) && \
      !defined(OS_NEXT) && \
      !defined(OS_MACHTEN) && \
      !defined(OS_MACOSX) && \
@@ -426,6 +431,7 @@
      defined( __i386__ ) || \
      defined( _M_IX86 )
 # if !defined( OS_FREEBSD ) && \
+     !defined( OS_DRAGONFLY ) && \
      !defined( OS_OS2 ) && \
      !defined( OS_AS400 )
 # define OSPLAT "OSPLAT=X86"
Index: tools/build/v1/gcc-tools.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v1/gcc-tools.jam,v
retrieving revision 1.95
diff -u -r1.95 gcc-tools.jam
--- tools/build/v1/gcc-tools.jam	1 Sep 2004 05:37:03 -0000	1.95
+++ tools/build/v1/gcc-tools.jam	25 Sep 2004 22:30:37 -0000
@@ -129,6 +129,12 @@
         flags gcc LINKFLAGS <threading>multi : -pthread ;
         # there is no -lrt on BSD
         }
+    case DragonFly :
+        {
+        flags gcc CFLAGS <threading>multi : -pthread ;
+        flags gcc LINKFLAGS <threading>multi : -pthread ;
+        # there is no -lrt on DragonFly
+        }
     case IRIX :
         {
         # gcc on IRIX does not support multi-threading, don't set anything here.
Index: tools/build/v2/tools/gcc.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/gcc.jam,v
retrieving revision 1.35
diff -u -r1.35 gcc.jam
--- tools/build/v2/tools/gcc.jam	22 Sep 2004 11:26:59 -0000	1.35
+++ tools/build/v2/tools/gcc.jam	25 Sep 2004 22:30:37 -0000
@@ -251,6 +251,11 @@
         flags gcc OPTIONS <threading>multi : -pthread ;
         # there is no -lrt on BSD
         }
+    case DragonFly :
+        {
+        flags gcc OPTIONS <threading>multi : -pthread ;
+        # there is no -lrt on DragonFly
+        }
     case IRIX :
         {
         # gcc on IRIX does not support multi-threading, don't set anything here.
