Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.43 2013/11/21 23:50:04 jmmv Exp $
# $NetBSD: Makefile.common,v 1.49 2014/12/15 11:46:35 jperkin Exp $
#
# used by devel/boost-build/Makefile
# used by devel/boost-docs/Makefile
@@ -9,7 +9,7 @@
BOOST_PACKAGE?= undefined
BOOST_COMMENT?= undefined
BOOST_VERSION= 1.55.0
BOOST_VERSION= 1.57.0
BOOST_SHORT_VERSION= ${BOOST_VERSION:S/./_/:C/\..*$//}
DISTNAME= boost_${BOOST_VERSION:S/./_/g}
@@ -19,7 +19,6 @@ CATEGORIES= devel
PKGNAME= boost-${BOOST_VERSION}
.else # ${BOOST_PACKAGE} != "meta-pkg"
PKGNAME= boost-${BOOST_PACKAGE}-${BOOST_VERSION}
PKGREVISION= 1
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/}
EXTRACT_SUFX= .tar.bz2
@@ -34,9 +33,18 @@ CONFLICTS+= boost<1.36.0
DISTINFO_FILE= ${.CURDIR}/../../meta-pkgs/boost/distinfo
PATCHDIR= ${.CURDIR}/../../meta-pkgs/boost/patches
.include "../../mk/bsd.prefs.mk"
USE_TOOLS+= pax
USE_LANGUAGES= c c++
GCC_REQD+= 3.2 # if using gcc; ignored otherwise
# GCC 4.5 or later is required to build, and GCC 4.5 is not provided for OpenBSD
. if ${OPSYS} == "OpenBSD"
. if ${MACHINE_ARCH} != "sparc64"
GCC_REQD+= 4.6
. endif
. else
GCC_REQD+= 4.5
. endif
PLIST_SUBST+= BOOST_VERSION="${BOOST_VERSION}"
@@ -49,26 +57,28 @@ SUBST_VARS.prefix= PREFIX
SUBST_CLASSES+= darwin
SUBST_STAGE.darwin= pre-configure
SUBST_MESSAGE.darwin= Fixing install_name for Darwin.
SUBST_FILES.darwin= tools/build/v2/tools/*darwin.jam
SUBST_FILES.darwin= tools/build/src/tools/*darwin.jam
SUBST_SED.darwin= -e 's,-install_name ",-install_name "${PREFIX}/lib/,g'
.include "../../mk/bsd.prefs.mk"
# On SunOS, extract using pkgsrc nbtar to avoid warnings from native gtar.
.if ${OPSYS} == "SunOS"
. if ${OPSYS} == "SunOS"
TOOLS_PLATFORM.tar= #empty
.endif
. include "../../mk/compiler.mk"
. if !empty(CC_VERSION:Mgcc-4.[6-9]*)
BUILDLINK_TRANSFORM+= opt:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600
. endif
. endif
.if ${OPSYS} == "Darwin"
. if ${OPSYS} == "Darwin"
# Prevent using a pkgsrc libtool in OS X because the darwin toolset needs
# the native libtool from /Developer/usr/bin or /usr/bin.
post-wrapper:
. if exists(/Developer/usr/bin/libtool)
. if exists(/Developer/usr/bin/libtool)
ln -s /Developer/usr/bin/libtool ${WRAPPER_BINDIR}/libtool
. else
. else
ln -s /usr/bin/libtool ${WRAPPER_BINDIR}/libtool
. endif
. endif
.endif
# We can't do this at post-extract because the extract cookie will get a future
# timestamp than the sources. If this happens, print-PLIST does not work.
@@ -77,18 +87,18 @@ pre-configure:
# Generate a new user.hpp or use the installed one, depending on the package
# we are building.
.if ${BOOST_CONFIG} == "installed"
. include "../../devel/boost-headers/buildlink3.mk"
. if ${BOOST_CONFIG} == "installed"
. include "../../devel/boost-headers/buildlink3.mk"
do-configure:
${CP} -f \
${BUILDLINK_PREFIX.boost-headers}/include/boost/config/user.hpp \
${WRKSRC}/boost/config/user.hpp
.elif ${BOOST_CONFIG} == "generate"
. elif ${BOOST_CONFIG} == "generate"
do-configure:
cd ${WRKSRC}/libs/config && \
${SETENV} ${CONFIGURE_ENV} ${SH} ./configure
${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp
.endif
. endif
boost-install-libs:
${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib

View File

@@ -1,21 +1,26 @@
$NetBSD: distinfo,v 1.64 2014/03/18 15:55:35 ryoon Exp $
$NetBSD: distinfo,v 1.76 2015/02/02 07:47:56 jdc Exp $
SHA1 (boost_1_55_0.tar.bz2) = cef9a0cc7084b1d639e06cd3bc34e4251524c840
RMD160 (boost_1_55_0.tar.bz2) = de8ef647933a005119425326b59723aad4a6fd4f
Size (boost_1_55_0.tar.bz2) = 58146647 bytes
SHA1 (boost_1_57_0.tar.bz2) = e151557ae47afd1b43dc3fac46f8b04a8fe51c12
RMD160 (boost_1_57_0.tar.bz2) = 8365f7c11e5ae088164ab1cb40ac624e76f8e72e
Size (boost_1_57_0.tar.bz2) = 60821561 bytes
SHA1 (patch-aa) = 408a63a807aaa491130db018cd89bca6a427090d
SHA1 (patch-ab) = f1c95ae229465a4d2da76ce6ff88d76ace52fdd8
SHA1 (patch-ab) = 37c61bcfc27f1533df21f4392f80df2d2dbe51ef
SHA1 (patch-ac) = 32d14b50682dae1950ed927ecb9318ad6b07687a
SHA1 (patch-ad) = 0e5dc31c3425de94444f97a9b7dec97ed5967733
SHA1 (patch-ae) = 2fb49c90bbb3fd797ccdfaaf44c93494a5988f52
SHA1 (patch-ag) = c406e9beb9260db7861b13a6eb4c386f23346eb1
SHA1 (patch-aq) = e5c7b72ffa2942ce401f3d9bf05498fd761df17a
SHA1 (patch-ae) = ac2e4afcf243c2fee2394cfe3fe92f4890e9ab83
SHA1 (patch-ag) = 117eabbbbc26d04bb5e56df5ad92e55b5061c0f8
SHA1 (patch-aq) = 355a58864bf4d07617250d2587e0f7cf62a7b825
SHA1 (patch-ar) = 2fec2c51272cc4ee376e6538d8f1fd8561a7f0a3
SHA1 (patch-boost_archive_iterators_transform__width.hpp) = 5c08bac63fcc259997a8cf6fac1684f45ef7cd1a
SHA1 (patch-boost_asio_detail_config.hpp) = b95ca6b0bb6c805624cb81c91c3f1b691a7425ca
SHA1 (patch-boost_config_posix__features.hpp) = c3e7187af35a2a25901b37388d3194e22d005323
SHA1 (patch-boost_config_stdlib_libcpp.hpp) = d243325d3aeb180e4ed7a1fd7d89782d832fa9fc
SHA1 (patch-boost_config_stdlib_libstdcpp3.hpp) = 173271c60b3e2ba7bb1fe9390dcd864ce9742588
SHA1 (patch-boost_core_noncopyable.hpp) = a693e5eda7fc303e1bd86ecfab40321d771af6fe
SHA1 (patch-boost_intrusive_circular__list__algorithms.hpp) = 0d54a9e37ead1648710ae0f8f71830bfaec10764
SHA1 (patch-boost_math_tools_config.hpp) = 81402bc38dc858d0818ed91e204966c8382be4ff
SHA1 (patch-boost_noncopyable.hpp) = 6567b5932c6bb48e8b2fcae48ff47e0f230fc1b9
SHA1 (patch-boost_regex_config.hpp) = 6b752c7c23168c591cd391739c7a4539bef44c12
SHA1 (patch-libs_config_configure) = e2f204d4fa4f1bd9b4131d28f9be0a1ac22bf711
SHA1 (patch-libs_context_build_Jamfile.v2) = befc2ae62e893ac665e88405d6aca79712f2549b
SHA1 (patch-libs_context_src_asm_make__ppc32__sysv__macho__gas.S) = 7f598bc270fcfa8babd99e1180248f04b50c2e46
SHA1 (patch-libs_filesystem_src_unique_path.cpp) = 4693ea11cf464d82168cecaa143b48affa94563b
SHA1 (patch-libs_log_src_timestamp.cpp) = f80981762e17ba7d6742f8cf5d8d6d4b494aa54e

View File

@@ -1,4 +1,4 @@
# $NetBSD: options.mk,v 1.2 2013/12/10 16:41:00 jperkin Exp $
# $NetBSD: options.mk,v 1.3 2014/11/07 19:28:38 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.boost
PKG_SUPPORTED_OPTIONS= debug expat icu
@@ -11,15 +11,15 @@ PKG_SUGGESTED_OPTIONS= icu
.if ${BOOST_PACKAGE} == "libs"
.if !empty(PKG_OPTIONS:Mexpat)
. if !empty(PKG_OPTIONS:Mexpat)
MAKE_ENV+= EXPAT_INCLUDE=${PREFIX}/include
MAKE_ENV+= EXPAT_LIBPATH=${PREFIX}/lib
. include "../../textproc/expat/buildlink3.mk"
.endif
. include "../../textproc/expat/buildlink3.mk"
. endif
.if !empty(PKG_OPTIONS:Micu)
. if !empty(PKG_OPTIONS:Micu)
MAKE_ENV+= ICU_PATH=${PREFIX}
. include "../../textproc/icu/buildlink3.mk"
.endif
. include "../../textproc/icu/buildlink3.mk"
. endif
.endif # ${BOOST_PACKAGE} == "libs"

View File

@@ -1,4 +1,4 @@
$NetBSD: patch-ab,v 1.5 2011/10/02 21:23:50 sbd Exp $
$NetBSD: patch-ab,v 1.6 2014/05/13 18:48:49 ryoon Exp $
--- boost/config/platform/bsd.hpp.orig 2011-03-07 13:07:30.000000000 +0000
+++ boost/config/platform/bsd.hpp
@@ -11,7 +11,16 @@ $NetBSD: patch-ab,v 1.5 2011/10/02 21:23:50 sbd Exp $
# define BOOST_HAS_PTHREADS
#endif
@@ -62,7 +62,7 @@
@@ -56,13 +56,15 @@
#endif
#if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5)) \
- || (defined(__NetBSD_GCC__) && (__NetBSD_GCC__ >= 2095003)) || defined(__DragonFly__))
+ || (defined(__NetBSD_GCC__) && (__NetBSD_GCC__ >= 2095003)) \
+ || defined(__DragonFly__) \
+ || defined(__OpenBSD__))
# define BOOST_NO_CWCHAR
#endif
//
// The BSD <ctype.h> has macros only, no functions:
//

View File

@@ -1,9 +1,9 @@
$NetBSD: patch-ae,v 1.7 2011/10/11 10:02:08 adam Exp $
$NetBSD: patch-ae,v 1.8 2014/08/13 10:56:36 adam Exp $
Pass CFLAGS to the compiler.
--- tools/build/v2/engine/build.sh.orig 2011-02-24 08:42:55.000000000 +0000
+++ tools/build/v2/engine/build.sh
--- tools/build/src/engine/build.sh.orig 2011-02-24 08:42:55.000000000 +0000
+++ tools/build/src/engine/build.sh
@@ -237,6 +237,7 @@ case $BOOST_JAM_TOOLSET in
error_exit "Unknown toolset: $BOOST_JAM_TOOLSET"
;;

View File

@@ -1,9 +1,9 @@
$NetBSD: patch-ag,v 1.7 2012/07/02 07:02:26 adam Exp $
$NetBSD: patch-ag,v 1.8 2014/08/13 10:56:36 adam Exp $
Pass CFLAGS to the compiler.
--- tools/build/v2/engine/build.jam.orig 2011-02-24 08:50:34.000000000 +0000
+++ tools/build/v2/engine/build.jam
--- tools/build/src/engine/build.jam.orig 2011-02-24 08:50:34.000000000 +0000
+++ tools/build/src/engine/build.jam
@@ -192,7 +192,7 @@ toolset como como : "-o " : -D
: -L$(--python-lib[1]) -l$(--python-lib[2]) ;
## Clang Linux 2.8+

View File

@@ -1,4 +1,4 @@
$NetBSD: patch-aq,v 1.6 2010/11/26 20:47:01 adam Exp $
$NetBSD: patch-aq,v 1.7 2014/05/13 18:48:49 ryoon Exp $
--- boost/test/impl/execution_monitor.ipp.orig 2009-11-28 09:19:18.000000000 +0000
+++ boost/test/impl/execution_monitor.ipp
@@ -20,7 +20,26 @@ $NetBSD: patch-aq,v 1.6 2010/11/26 20:47:01 adam Exp $
switch( m_sig_info->si_code ) {
case SI_USER:
report_error( execution_exception::system_error,
@@ -608,6 +610,7 @@ system_signal_exception::report() const
@@ -341,14 +343,18 @@ system_signal_exception::report() const
report_error( execution_exception::system_error,
"signal: the expiration of a timer set by timer_settimer()" );
break;
+#if defined(SI_ASYNCIO)
case SI_ASYNCIO:
report_error( execution_exception::system_error,
"signal: generated by the completion of an asynchronous I/O request" );
break;
+#endif
+#if defined(SI_MESGQ)
case SI_MESGQ:
report_error( execution_exception::system_error,
"signal: generated by the the arrival of a message on an empty message queue" );
break;
+#endif
default:
break;
}
@@ -608,6 +614,7 @@ system_signal_exception::report() const
default:
report_error( execution_exception::system_error, "unrecognized signal" );
}

View File

@@ -1,13 +0,0 @@
$NetBSD: patch-boost_archive_iterators_transform__width.hpp,v 1.1 2013/10/27 20:31:58 joerg Exp $
--- boost/archive/iterators/transform_width.hpp.orig 2013-10-27 13:52:06.000000000 +0000
+++ boost/archive/iterators/transform_width.hpp
@@ -30,6 +30,8 @@
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/iterator_traits.hpp>
+#include <algorithm> // std::min
+
namespace boost {
namespace archive {
namespace iterators {

View File

@@ -0,0 +1,59 @@
$NetBSD: patch-boost_config_posix__features.hpp,v 1.1 2014/05/13 18:48:49 ryoon Exp $
* Add OpenBSD conditionals, fix build under OpenBSD 5.5
* OpenBSD has no _POSIX_TIMERS
--- boost/config/posix_features.hpp.orig 2005-10-14 14:16:26.000000000 +0000
+++ boost/config/posix_features.hpp
@@ -18,12 +18,12 @@
# include <unistd.h>
// XOpen has <nl_types.h>, but is this the correct version check?
-# if defined(_XOPEN_VERSION) && (_XOPEN_VERSION >= 3)
+# if defined(_XOPEN_VERSION) && (_XOPEN_VERSION >= 3) || defined(__OpenBSD__)
# define BOOST_HAS_NL_TYPES_H
# endif
// POSIX version 6 requires <stdint.h>
-# if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 200100)
+# if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 200100) || defined(__OpenBSD__)
# define BOOST_HAS_STDINT_H
# endif
@@ -33,7 +33,7 @@
# endif
// POSIX version 3 requires <signal.h> to have sigaction:
-# if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 199506L)
+# if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 199506L) || defined(__OpenBSD__)
# define BOOST_HAS_SIGACTION
# endif
// POSIX defines _POSIX_THREADS > 0 for pthread support,
@@ -49,7 +49,8 @@
// BOOST_HAS_NANOSLEEP:
// This is predicated on _POSIX_TIMERS or _XOPEN_REALTIME:
# if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS+0 >= 0)) \
- || (defined(_XOPEN_REALTIME) && (_XOPEN_REALTIME+0 >= 0))
+ || (defined(_XOPEN_REALTIME) && (_XOPEN_REALTIME+0 >= 0) \
+ || defined(__OpenBSD__))
# define BOOST_HAS_NANOSLEEP
# endif
@@ -57,7 +58,7 @@
// This is predicated on _POSIX_TIMERS (also on _XOPEN_REALTIME
// but at least one platform - linux - defines that flag without
// defining clock_gettime):
-# if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS+0 >= 0))
+# if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS+0 >= 0) || defined(__OpenBSD__))
# define BOOST_HAS_CLOCK_GETTIME
# endif
@@ -75,7 +76,7 @@
// These are predicated on _XOPEN_VERSION, and appears to be first released
// in issue 4, version 2 (_XOPEN_VERSION > 500).
// Likewise for the functions log1p and expm1.
-# if defined(_XOPEN_VERSION) && (_XOPEN_VERSION+0 >= 500)
+# if (defined(_XOPEN_VERSION) && (_XOPEN_VERSION+0 >= 500)) || defined(__OpenBSD__)
# define BOOST_HAS_GETTIMEOFDAY
# if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE+0 >= 500)
# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-boost_core_noncopyable.hpp,v 1.1 2014/08/13 10:56:36 adam Exp $
https://svn.boost.org/trac/boost/ticket/6578
--- boost/core/noncopyable.hpp.orig 2014-07-15 09:08:59.000000000 +0000
+++ boost/core/noncopyable.hpp
@@ -22,7 +22,7 @@ namespace noncopyable_ // protection fr
{
class noncopyable
{
- protected:
+ public:
#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && !defined(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS)
BOOST_CONSTEXPR noncopyable() = default;
~noncopyable() = default;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-boost_intrusive_circular__list__algorithms.hpp,v 1.1 2015/01/15 13:01:44 joerg Exp $
--- boost/intrusive/circular_list_algorithms.hpp.orig 2015-01-13 12:09:16.000000000 +0000
+++ boost/intrusive/circular_list_algorithms.hpp
@@ -475,7 +475,7 @@ class circular_list_algorithms
BOOST_CATCH(...){
node_traits::set_next (last_to_remove, new_f);
node_traits::set_previous(new_f, last_to_remove);
- throw;
+ BOOST_RETHROW
}
BOOST_CATCH_END
node_traits::set_next(last_to_remove, new_f);

View File

@@ -1,15 +0,0 @@
$NetBSD: patch-boost_noncopyable.hpp,v 1.1 2013/11/20 19:17:55 adam Exp $
https://svn.boost.org/trac/boost/ticket/6578
--- boost/noncopyable.hpp.orig 2013-11-20 14:20:55.000000000 +0000
+++ boost/noncopyable.hpp
@@ -22,7 +22,7 @@ namespace noncopyable_ // protection fr
{
class noncopyable
{
- protected:
+ public:
#ifndef BOOST_NO_DEFAULTED_FUNCTIONS
BOOST_CONSTEXPR noncopyable() = default;
~noncopyable() = default;

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-boost_regex_config.hpp,v 1.1 2014/05/13 18:48:49 ryoon Exp $
* Fix OpenBSD build
--- boost/regex/config.hpp.orig 2012-07-16 08:38:23.000000000 +0000
+++ boost/regex/config.hpp
@@ -75,7 +75,7 @@
* std::use_facet<std::ctype<wchar_t> >.is(std::ctype_base::lower|std::ctype_base::upper, L'a');
* returns *false*.
*/
-#ifdef __GLIBCPP__
+#if defined(__GLIBCPP__) && !defined(__OpenBSD__)
# define BOOST_REGEX_BUGGY_CTYPE_FACET
#endif

View File

@@ -0,0 +1,53 @@
$NetBSD: patch-libs_context_build_Jamfile.v2,v 1.5 2015/02/02 07:45:12 jdc Exp $
Restore sparc/sparc64 support.
--- libs/context/build/Jamfile.v2.orig 2015-01-30 14:27:19.000000000 +0000
+++ libs/context/build/Jamfile.v2 2015-02-01 17:42:18.000000000 +0000
@@ -437,7 +437,6 @@
alias asm_context_sources
: [ make asm/make_sparc_sysv_elf_gas.o : asm/make_sparc_sysv_elf_gas.S : @gas32 ]
[ make asm/jump_sparc_sysv_elf_gas.o : asm/jump_sparc_sysv_elf_gas.S : @gas32 ]
- unsupported.cpp
: <abi>sysv
<address-model>32
<architecture>sparc
@@ -447,7 +446,6 @@
alias asm_context_sources
: asm/make_sparc_sysv_elf_gas.S
asm/jump_sparc_sysv_elf_gas.S
- unsupported.cpp
: <abi>sysv
<address-model>32
<architecture>sparc
@@ -458,7 +456,6 @@
alias asm_context_sources
: asm/make_sparc_sysv_elf_gas.S
asm/jump_sparc_sysv_elf_gas.S
- unsupported.cpp
: <abi>sysv
<address-model>32
<architecture>sparc
@@ -471,7 +468,6 @@
alias asm_context_sources
: [ make asm/make_sparc64_sysv_elf_gas.o : asm/make_sparc64_sysv_elf_gas.S : @gas64 ]
[ make asm/jump_sparc64_sysv_elf_gas.o : asm/jump_sparc64_sysv_elf_gas.S : @gas64 ]
- unsupported.cpp
: <abi>sysv
<address-model>64
<architecture>sparc
@@ -481,7 +477,6 @@
alias asm_context_sources
: asm/make_sparc64_sysv_elf_gas.S
asm/jump_sparc64_sysv_elf_gas.S
- unsupported.cpp
: <abi>sysv
<address-model>64
<architecture>sparc
@@ -492,7 +487,6 @@
alias asm_context_sources
: asm/make_sparc64_sysv_elf_gas.S
asm/jump_sparc64_sysv_elf_gas.S
- unsupported.cpp
: <abi>sysv
<address-model>64
<architecture>sparc

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-libs_context_src_asm_make__ppc32__sysv__macho__gas.S,v 1.1 2015/01/25 11:26:50 pho Exp $
Fix build failure on PPC Darwin:
darwin.compile.asm bin.v2/libs/context/build/darwin-4.5.3/release/link-static/threading-multi/asm/make_ppc32_sysv_macho_gas.o
libs/context/src/asm/make_ppc32_sysv_macho_gas.S:85:Parameter syntax error (parameter 3)
--- libs/context/src/asm/make_ppc32_sysv_macho_gas.S.orig 2015-01-25 10:27:18.000000000 +0000
+++ libs/context/src/asm/make_ppc32_sysv_macho_gas.S
@@ -82,7 +82,7 @@ _make_fcontext:
subi r3, r3, 304
; third arg of make_fcontext() == address of context-function
- stw r5, 236(%r3)
+ stw r5, 236(r3)
; load LR
mflr r0

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-libs_log_src_timestamp.cpp,v 1.1 2014/05/13 18:48:49 ryoon Exp $
* OpenBSD 5.5 has no _POSIX_TIMES, fix build under OpenBSD 5.5
--- libs/log/src/timestamp.cpp.orig 2013-08-25 14:20:22.000000000 +0000
+++ libs/log/src/timestamp.cpp
@@ -202,7 +202,7 @@ BOOST_LOG_API get_tick_count_t get_tick_
#endif // _WIN32_WINNT >= 0x0600
-#elif defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0
+#elif (defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0) || defined(__OpenBSD__)
BOOST_LOG_API int64_t duration::milliseconds() const
{