Let Boost know OpenBSD has certain POSIX features but Boost does
not enable the use of said features because the POSIX feature groups are not enabled yet due to missing functions/features within respective feature groups. ok sthen@
This commit is contained in:
parent
8c4568d6e0
commit
5f3151d7e6
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.45 2013/03/26 20:15:10 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.46 2013/04/12 01:11:32 brad Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= ${GCC4_ARCHS}
|
||||
|
||||
@ -7,7 +7,7 @@ COMMENT= free peer-reviewed portable C++ source libraries
|
||||
VERSION= 1.53.0
|
||||
DISTNAME= boost_${VERSION:S/./_/g}
|
||||
PKGNAME= boost-${VERSION}
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/}
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
55
devel/boost/patches/patch-boost_config_posix_features_hpp
Normal file
55
devel/boost/patches/patch-boost_config_posix_features_hpp
Normal file
@ -0,0 +1,55 @@
|
||||
$OpenBSD: patch-boost_config_posix_features_hpp,v 1.1 2013/04/12 01:11:32 brad Exp $
|
||||
--- boost/config/posix_features.hpp.orig Thu Apr 4 12:57:07 2013
|
||||
+++ boost/config/posix_features.hpp Thu Apr 4 13:11:54 2013
|
||||
@@ -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
|
Loading…
Reference in New Issue
Block a user