$OpenBSD: patch-cpp_src_phonenumbers_base_synchronization_lock_h,v 1.1.1.1 2021/05/23 14:26:04 rsadowski Exp $

Index: cpp/src/phonenumbers/base/synchronization/lock.h
--- cpp/src/phonenumbers/base/synchronization/lock.h.orig
+++ cpp/src/phonenumbers/base/synchronization/lock.h
@@ -22,7 +22,8 @@
 #elif (__cplusplus >= 201103L) && defined(I18N_PHONENUMBERS_USE_STDMUTEX)
 // C++11 Lock implementation based on std::mutex.
 #include "phonenumbers/base/synchronization/lock_stdmutex.h"
-#elif defined(__linux__) || defined(__APPLE__) || defined(I18N_PHONENUMBERS_HAVE_POSIX_THREAD)
+#elif defined(__linux__) || defined(__APPLE__) ||  defined(__FreeBSD__) || defined(__OpenBSD__)  || \
+    defined(I18N_PHONENUMBERS_HAVE_POSIX_THREAD)
 #include "phonenumbers/base/synchronization/lock_posix.h"
 #elif defined(WIN32)
 #include "phonenumbers/base/synchronization/lock_win32.h"
