Skip to content

Commit

Permalink
Only use <sys/sysctl.h> on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddubbeldam committed Sep 20, 2021
1 parent 23ac9cd commit e6f332a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ m4_warn([obsolete],
ISO C90 headers unconditionally.])dnl
# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change. They are probably safe to remove.
AC_CHECK_INCLUDES_DEFAULT
AC_PROG_EGREP

AC_CHECK_HEADERS([math.h])
Expand Down
4 changes: 3 additions & 1 deletion src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
#include <float.h>
#include <sys/stat.h>
#include <sys/utsname.h>
#include <sys/sysctl.h>
#if defined (__APPLE__)
#include <sys/sysctl.h>
#endif
#include <math.h>
#include <time.h>
#include <unistd.h>
Expand Down

0 comments on commit e6f332a

Please sign in to comment.