Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/tscore/ink_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,11 @@ typedef unsigned int in_addr_t;
#include <sys/sysinfo.h>
#endif

#if defined(darwin) || defined(freebsd)
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
#endif

#ifdef HAVE_SYS_SYSTEMINFO_H
#include <sys/systeminfo.h>
Expand Down
2 changes: 2 additions & 0 deletions src/tscore/ink_hrtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
#if defined(freebsd)
#include <sys/types.h>
#include <sys/param.h>
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
#endif
#include <cstring>
#include <sys/time.h>

Expand Down
4 changes: 4 additions & 0 deletions tests/include/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7093,7 +7093,11 @@ namespace Catch {
# include <stdbool.h>
# include <sys/types.h>
# include <unistd.h>
#if defined(darwin) || defined(freebsd)
#ifdef HAVE_SYS_SYSCTL_H
# include <sys/sysctl.h>
#endif
#endif
# include <cstddef>
# include <ostream>

Expand Down