diff options
author | kgotlinux <60880393+kgotlinux@users.noreply.github.com> | 2020-06-16 22:15:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 22:15:41 +0200 |
commit | 62f3fda2711b774333fa5e2632b93c54832e6f03 (patch) | |
tree | 99bcbab247a07bc7e482b59bae1f7e864a89fc75 /absl/base | |
parent | ccdbb5941f992fabda7eae3ce72f55efc17c826a (diff) |
Added neccessary headers for FreeBSD
1. Changed order of sys/sysctl.h, because sysctl.h needs types.h
2. Threads.h is neccessary for once_flag
3. absl/base/call_once.h is neccessary for LowLevelCallOnce
Diffstat (limited to 'absl/base')
-rw-r--r-- | absl/base/internal/unscaledcycleclock.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/absl/base/internal/unscaledcycleclock.cc b/absl/base/internal/unscaledcycleclock.cc index f1e7bbef..83e2134e 100644 --- a/absl/base/internal/unscaledcycleclock.cc +++ b/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 |