diff -Naur clean_boost_1_38_0/boost/config/platform/haiku.hpp pom3-boost/boost/config/platform/haiku.hpp
|
old
|
new
|
|
| | 1 | // (C) Copyright John Maddock 2001. |
| | 2 | // Use, modification and distribution are subject to the |
| | 3 | // Boost Software License, Version 1.0. (See accompanying file |
| | 4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| | 5 | |
| | 6 | // See http://www.boost.org for most recent version. |
| | 7 | |
| | 8 | // Haiku specific config options: |
| | 9 | |
| | 10 | #define BOOST_PLATFORM "Haiku" |
| | 11 | |
| | 12 | #define BOOST_NO_INTRINSIC_WCHAR_T |
| | 13 | #define BOOST_HAS_UNISTD_H |
| | 14 | |
| | 15 | #define BOOST_HAS_BETHREADS |
| | 16 | |
| | 17 | #ifndef BOOST_DISABLE_THREADS |
| | 18 | # define BOOST_HAS_THREADS |
| | 19 | #endif |
| | 20 | |
| | 21 | // |
| | 22 | // thread API's not auto detected: |
| | 23 | // |
| | 24 | #define BOOST_HAS_GETTIMEOFDAY |
| | 25 | |
| | 26 | // boilerplate code: |
| | 27 | #include <boost/config/posix_features.hpp> |
| | 28 | |
| | 29 | |
| | 30 | |
diff -Naur clean_boost_1_38_0/boost/config/select_platform_config.hpp pom3-boost/boost/config/select_platform_config.hpp
|
old
|
new
|
|
| 41 | 41 | // win32: |
| 42 | 42 | # define BOOST_PLATFORM_CONFIG "boost/config/platform/win32.hpp" |
| 43 | 43 | |
| | 44 | #elif defined(__HAIKU__) |
| | 45 | // Haiku |
| | 46 | # define BOOST_PLATFORM_CONFIG "boost/config/platform/haiku.hpp" |
| | 47 | |
| 44 | 48 | #elif defined(__BEOS__) |
| 45 | 49 | // BeOS |
| 46 | 50 | # define BOOST_PLATFORM_CONFIG "boost/config/platform/beos.hpp" |
diff -Naur clean_boost_1_38_0/boost/config/stdlib/libstdcpp3.hpp pom3-boost/boost/config/stdlib/libstdcpp3.hpp
|
old
|
new
|
|
| 31 | 31 | |
| 32 | 32 | #ifdef __GLIBCXX__ // gcc 3.4 and greater: |
| 33 | 33 | # if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \ |
| 34 | | || defined(_GLIBCXX__PTHREADS) |
| | 34 | || defined(_GLIBCXX__PTHREADS) || defined(__HAIKU__) |
| 35 | 35 | // |
| 36 | 36 | // If the std lib has thread support turned on, then turn it on in Boost |
| 37 | 37 | // as well. We do this because some gcc-3.4 std lib headers define _REENTANT |
diff -Naur clean_boost_1_38_0/boost/thread/thread_time.hpp pom3-boost/boost/thread/thread_time.hpp
|
a
|
b
|
|
| 17 | 17 | |
| 18 | 18 | inline system_time get_system_time() |
| 19 | 19 | { |
| | 20 | #ifndef BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK |
| | 21 | # error "High precision clock not supported on this platform" |
| | 22 | #endif |
| 20 | 23 | return boost::date_time::microsec_clock<system_time>::universal_time(); |
| 21 | 24 | } |
| 22 | 25 | |
diff -Naur clean_boost_1_38_0/tools/build/v2/tools/builtin.jam pom3-boost/tools/build/v2/tools/builtin.jam
|
old
|
new
|
|
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | .os-names = aix bsd cygwin darwin freebsd hpux iphone linux netbsd |
| 41 | | openbsd osf qnx qnxnto sgi solaris unix unixware windows ; |
| | 41 | openbsd osf qnx qnxnto sgi solaris unix unixware windows haiku ; |
| 42 | 42 | |
| 43 | 43 | # Feature used to determine which OS we're on. New <target-os> and <host-os> |
| 44 | 44 | # features should be used instead. |
| … |
… |
|
| 70 | 70 | case MACOSX : host-os = darwin ; |
| 71 | 71 | case KFREEBSD : host-os = freebsd ; |
| 72 | 72 | case LINUX : host-os = linux ; |
| | 73 | case HAIKU : host-os = haiku ; |
| 73 | 74 | case SUNOS : |
| 74 | 75 | ECHO "SunOS is not a supported operating system." ; |
| 75 | 76 | ECHO "We believe last version of SunOS was released in 1992, " ; |
diff -Naur clean_boost_1_38_0/tools/build/v2/tools/gcc.jam pom3-boost/tools/build/v2/tools/gcc.jam
|
old
|
new
|
|
| 793 | 793 | # Differs from 'link' above only by -shared. |
| 794 | 794 | actions link.dll bind LIBRARIES |
| 795 | 795 | { |
| 796 | | "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=) -shared $(START-GROUP) "$(>)" "$(LIBRARIES)" $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS) |
| | 796 | "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=) -nostart -Wl,-shared $(START-GROUP) "$(>)" "$(LIBRARIES)" $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS) |
| 797 | 797 | } |
| 798 | 798 | |
| 799 | 799 | rule setup-threading ( targets * : sources * : properties * ) |
| … |
… |
|
| 824 | 824 | { |
| 825 | 825 | # BeOS has no threading options, so do not set anything here. |
| 826 | 826 | } |
| | 827 | case haiku : |
| | 828 | { |
| | 829 | # pthread |
| | 830 | } |
| 827 | 831 | case *bsd : |
| 828 | 832 | { |
| 829 | 833 | option = -pthread ; |
diff -Naur clean_boost_1_38_0/tools/jam/src/Jambase pom3-boost/tools/jam/src/Jambase
|
old
|
new
|
|
| 837 | 837 | NOARSCAN ?= true ; |
| 838 | 838 | STDHDRS ?= /boot/develop/headers/posix ; |
| 839 | 839 | } |
| 840 | | else if $(OS) = BEOS |
| | 840 | else if $(OS) = BEOS || $(OS) = HAIKU |
| 841 | 841 | { |
| 842 | 842 | BINDIR ?= /boot/apps ; |
| 843 | 843 | CC ?= gcc ; |
diff -Naur clean_boost_1_38_0/tools/jam/src/boehm_gc/config.guess pom3-boost/tools/jam/src/boehm_gc/config.guess
|
old
|
new
|
|
| 1199 | 1199 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
| 1200 | 1200 | echo i586-pc-beos |
| 1201 | 1201 | exit ;; |
| | 1202 | BePC::Haiku:*:*) |
| | 1203 | echo i586-pc-beos |
| | 1204 | exit ;; |
| 1202 | 1205 | SX-4:SUPER-UX:*:*) |
| 1203 | 1206 | echo sx4-nec-superux${UNAME_RELEASE} |
| 1204 | 1207 | exit ;; |
diff -Naur clean_boost_1_38_0/tools/jam/src/boehm_gc/include/private/gcconfig.h pom3-boost/tools/jam/src/boehm_gc/include/private/gcconfig.h
|
old
|
new
|
|
| 215 | 215 | # define BEOS |
| 216 | 216 | # define mach_type_known |
| 217 | 217 | # endif |
| | 218 | # if defined(__HAIKU__) && defined(_X86_) |
| | 219 | # define I386 |
| | 220 | # define HAIKU |
| | 221 | # endif |
| 218 | 222 | # if defined(LINUX) && (defined(i386) || defined(__i386__)) |
| 219 | 223 | # define I386 |
| 220 | 224 | # define mach_type_known |
| … |
… |
|
| 1014 | 1018 | extern int etext[]; |
| 1015 | 1019 | # define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff)) |
| 1016 | 1020 | # endif |
| | 1021 | # ifdef HAIKU |
| | 1022 | # define OS_TYPE "HAIKU" |
| | 1023 | # include <OS.h> |
| | 1024 | # define GETPAGESIZE() B_PAGE_SIZE |
| | 1025 | extern int etext[]; |
| | 1026 | # define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff)) |
| | 1027 | # endif |
| 1017 | 1028 | # ifdef SOLARIS |
| 1018 | 1029 | # define OS_TYPE "SOLARIS" |
| 1019 | 1030 | extern int _etext[], _end[]; |
diff -Naur clean_boost_1_38_0/tools/jam/src/fileunix.c pom3-boost/tools/jam/src/fileunix.c
|
old
|
new
|
|
| 80 | 80 | |
| 81 | 81 | # if defined( OS_QNX ) || \ |
| 82 | 82 | defined( OS_BEOS ) || \ |
| | 83 | defined( OS_HAIKU ) || \ |
| 83 | 84 | defined( OS_MPEIX ) |
| 84 | 85 | # define NO_AR |
| 85 | 86 | # define HAVE_AR |
diff -Naur clean_boost_1_38_0/tools/jam/src/jam.h pom3-boost/tools/jam/src/jam.h
|
old
|
new
|
|
| 234 | 234 | #define OS_BEOS |
| 235 | 235 | #define NO_VFORK |
| 236 | 236 | #endif |
| | 237 | #ifdef __HAIKU__ |
| | 238 | #define unix |
| | 239 | #define OSMINOR "OS=HAIKU" |
| | 240 | #define OS_HAIKU |
| | 241 | #endif |
| 237 | 242 | #ifdef __bsdi__ |
| 238 | 243 | #define OSMINOR "OS=BSDI" |
| 239 | 244 | #define OS_BSDI |
diff -Naur clean_boost_1_38_0/tools/jam/src/jambase.c pom3-boost/tools/jam/src/jambase.c
|
old
|
new
|
|
| 542 | 542 | "NOARSCAN ?= true ;\n", |
| 543 | 543 | "STDHDRS ?= /boot/develop/headers/posix ;\n", |
| 544 | 544 | "}\n", |
| 545 | | "else if $(OS) = BEOS\n", |
| | 545 | "else if $(OS) = BEOS || $(OS) = HAIKU\n", |
| 546 | 546 | "{\n", |
| 547 | 547 | "BINDIR ?= /boot/apps ;\n", |
| 548 | 548 | "CC ?= gcc ;\n", |