$OpenBSD: patch-boost_config_platform_bsd_hpp,v 1.5 2021/09/19 05:23:29 rsadowski Exp $

Index: boost/config/platform/bsd.hpp
--- boost/config/platform/bsd.hpp.orig
+++ boost/config/platform/bsd.hpp
@@ -28,7 +28,8 @@
 // FreeBSD has <nl_types.h> but does not
 // advertise the fact in <unistd.h>:
 //
-#if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) || defined(__DragonFly__)
+#if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) \
+   || defined(__OpenBSD__) || defined(__DragonFly__)
 #  define BOOST_HAS_NL_TYPES_H
 #endif
 
@@ -36,8 +37,8 @@
 // FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in <pthread.h>
 // and not in <unistd.h>
 //
-#if (defined(__FreeBSD__) && (__FreeBSD__ <= 3))\
-   || defined(__OpenBSD__) || defined(__DragonFly__) 
+#if (defined(__FreeBSD__) && (__FreeBSD__ <= 3)) \
+   || defined(__DragonFly__) 
 #  define BOOST_HAS_PTHREADS
 #endif
 
@@ -56,15 +57,10 @@
 #endif
 
 #if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5)) \
-      || (defined(__NetBSD_GCC__) && (__NetBSD_GCC__ >= 2095003)) || defined(__DragonFly__))
+      || (defined(__NetBSD_GCC__) && (__NetBSD_GCC__ >= 2095003)) \
+      || defined(__OpenBSD__) || defined(__DragonFly__))
 #  define BOOST_NO_CWCHAR
 #endif
-//
-// The BSD <ctype.h> has macros only, no functions:
-//
-#if !defined(__OpenBSD__) || defined(__DragonFly__)
-#  define BOOST_NO_CTYPE_FUNCTIONS
-#endif
 
 //
 // thread API's not auto detected:
@@ -74,6 +70,7 @@
 #define BOOST_HAS_GETTIMEOFDAY
 #define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
 #define BOOST_HAS_SIGACTION
+#define BOOST_HAS_CLOCK_GETTIME
 
 // boilerplate code:
 #define BOOST_HAS_UNISTD_H
