git: c93051860c82 - main - databases/mongodb70: fix build on powerpc64le
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 May 2023 13:46:10 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=c93051860c82666804d13ff909471e7e977b1a62 commit c93051860c82666804d13ff909471e7e977b1a62 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-05-10 13:44:29 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-05-10 13:44:29 +0000 databases/mongodb70: fix build on powerpc64le In file included from src/third_party/abseil-cpp/dist/absl/base/internal/unscaledcycleclock.cc:27: /usr/include/sys/sysctl.h:1189:25: error: unknown type name 'u_int' int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); ^ src/third_party/abseil-cpp/dist/absl/base/internal/unscaledcycleclock.cc:95:10: error: unknown type name 'once_flag' static once_flag init_timebase_frequency_once; ^ src/third_party/abseil-cpp/dist/absl/base/internal/unscaledcycleclock.cc:97:18: error: no member named 'LowLevelCallOnce' in namespace 'absl::base_internal' base_internal::LowLevelCallOnce(&init_timebase_frequency_once, [&]() { ~~~~~~~~~~~~~~~^ 3 errors generated. --- ...abseil-cpp_dist_absl_base_internal_unscaledcycleclock.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/databases/mongodb70/files/patch-src_third__party_abseil-cpp_dist_absl_base_internal_unscaledcycleclock.cc b/databases/mongodb70/files/patch-src_third__party_abseil-cpp_dist_absl_base_internal_unscaledcycleclock.cc new file mode 100644 index 000000000000..af57deacab62 --- /dev/null +++ b/databases/mongodb70/files/patch-src_third__party_abseil-cpp_dist_absl_base_internal_unscaledcycleclock.cc @@ -0,0 +1,13 @@ +--- src/third_party/abseil-cpp/dist/absl/base/internal/unscaledcycleclock.cc.orig 2023-05-10 10:35:21 UTC ++++ src/third_party/abseil-cpp/dist/absl/base/internal/unscaledcycleclock.cc +@@ -24,8 +24,9 @@ + #ifdef __GLIBC__ + #include <sys/platform/ppc.h> + #elif defined(__FreeBSD__) +-#include <sys/sysctl.h> ++#include "absl/base/call_once.h" + #include <sys/types.h> ++#include <sys/sysctl.h> + #endif + #endif +