mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
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
20 lines
1 KiB
C++
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>
|
|
|