summaryrefslogtreecommitdiffstats
path: root/libnetdata/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnetdata/os.h')
-rw-r--r--libnetdata/os.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnetdata/os.h b/libnetdata/os.h
index 3cda79ed7..197548b0d 100644
--- a/libnetdata/os.h
+++ b/libnetdata/os.h
@@ -37,6 +37,7 @@ int getsysctl(const char *name, int *mib, size_t miblen, void *ptr, size_t *len)
#if __APPLE__
#include <sys/sysctl.h>
+#include "endian.h"
#define GETSYSCTL_BY_NAME(name, var) getsysctl_by_name(name, &(var), sizeof(var))
int getsysctl_by_name(const char *name, void *ptr, size_t len);