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)
14 lines
363 B
C++
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
|
|
|