diff --git a/lib/procutils.c b/lib/procutils.c --- a/lib/procutils.c +++ b/lib/procutils.c @@ -13,7 +13,12 @@ #include #include #include +#ifndef __APPLE__ #include +#else +#include +#include +#endif #include #include #include diff --git a/include/statfs_magic.c b/include/statfs_magic.c --- a/include/statfs_magic.h +++ b/include/statfs_magic.h @@ -1,7 +1,9 @@ #ifndef UTIL_LINUX_STATFS_MAGIC_H #define UTIL_LINUX_STATFS_MAGIC_H +#ifndef __APPLE__ #include +#endif /* * If possible then don't depend on internal libc __SWORD_TYPE type.