Skip to content

Commit

Permalink
sys/sysctl.h just included if __APPLE__
Browse files Browse the repository at this point in the history
  • Loading branch information
leoisl committed Jul 14, 2022
1 parent 8b57336 commit d788488
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cobs/util/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include <sys/types.h>
#include <tlx/die.hpp>

#ifdef __APPLE__
#include <sys/sysctl.h>
#endif

// portable way to get phys_pages from https://stackoverflow.com/a/30512156/5264075
#define PHYS_PAGES get_phys_pages()
Expand Down

0 comments on commit d788488

Please sign in to comment.