ports/devel/libphonenumber/files/patch-src_phonenumbers_base_thread__checker.h
Jason E. Hale e0e9da7f91 devel/libphonenumber: Restore header patches
Fixes issue with net/kitinerary
/usr/local/include/phonenumbers/base/thread_checker.h:29:2:
error: Building without Boost, please provide -DI18N_PHONENUMBERS_NO_THREAD_SAFETY

PR:		285187
Reported by:	Chad Jacob Milios <milios@ccsys.com>
Fixes:		a7845f82f0 devel/libphonenumber: Update to 9.0.0
2025-03-05 20:56:50 -05:00

20 lines
1 KiB
C++

--- src/phonenumbers/base/thread_checker.h.orig 2025-02-27 13:36:44 UTC
+++ src/phonenumbers/base/thread_checker.h
@@ -22,7 +22,7 @@
// Note that I18N_PHONENUMBERS_NO_THREAD_SAFETY must be defined only to let the
// user of the library know that it can't be used in a thread-safe manner when
// it is not depending on Boost.
-#if !defined(__linux__) && !defined(__APPLE__) && !defined(I18N_PHONENUMBERS_HAVE_POSIX_THREAD) && \
+#if !defined(__linux__) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(I18N_PHONENUMBERS_HAVE_POSIX_THREAD) && \
!defined(I18N_PHONENUMBERS_NO_THREAD_SAFETY) && \
!((__cplusplus >= 201103L) && defined(I18N_PHONENUMBERS_USE_STDMUTEX)) && \
!defined(WIN32)
@@ -33,7 +33,7 @@
#endif
#if !defined(NDEBUG) && !defined(I18N_PHONENUMBERS_USE_BOOST) && \
- (defined(__linux__) || defined(__APPLE__) || defined(I18N_PHONENUMBERS_HAVE_POSIX_THREAD))
+ (defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(I18N_PHONENUMBERS_HAVE_POSIX_THREAD))
#include <pthread.h>