ports/devel/bazel5/files/extra-patch-abseil-cpp_absl_base_internal_unscaledcycleclock.cc
Charlie Li abc5ed39ba
devel/bazel5: split from devel/bazel
Major versions harbour some incompatibilities. Main port to be
updated to 6.

Event: Kitchener-Waterloo Hackathon 202305
2023-05-25 20:52:29 -04:00

14 lines
363 B
C++

--- 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