aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-08-09 20:39:40 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-08-09 20:39:40 +0000
commita2be5e7d2e8381473c781e551d3fdb0fce5e7321 (patch)
treea53901b500e03b965b51964947d0f5420985ea15 /devel
parent7e21ae55eb67065d1d96d9b834a186dca58ba047 (diff)
downloadports-a2be5e7d2e8381473c781e551d3fdb0fce5e7321.tar.gz
ports-a2be5e7d2e8381473c781e551d3fdb0fce5e7321.zip
devel/abseil: fix build on powerpc64
sys/sysctl.h needs to be included after sys/types.h. For once_flag, threads.h needs to be included. For call_once, absl/base/call_once.h needs to be included. MFH: 2020Q3 (fix build blanket)
Notes
Notes: svn path=/head/; revision=544577
Diffstat (limited to 'devel')
-rw-r--r--devel/abseil/files/patch-absl_base_internal_unscaledcycleclock.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/abseil/files/patch-absl_base_internal_unscaledcycleclock.cc b/devel/abseil/files/patch-absl_base_internal_unscaledcycleclock.cc
new file mode 100644
index 000000000000..d13abc1bd9de
--- /dev/null
+++ b/devel/abseil/files/patch-absl_base_internal_unscaledcycleclock.cc
@@ -0,0 +1,14 @@
+--- absl/base/internal/unscaledcycleclock.cc.orig 2020-08-09 20:09:49 UTC
++++ absl/base/internal/unscaledcycleclock.cc
+@@ -24,8 +24,10 @@
+ #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>
++#include <threads.h>
+ #endif
+ #endif
+