package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
679 B

diff --git a/lib/procutils.c b/lib/procutils.c
--- a/lib/procutils.c
+++ b/lib/procutils.c
@@ -13,7 +13,12 @@
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
+#ifndef __APPLE__
#include <sys/vfs.h>
+#else
+#include <sys/param.h>
+#include <sys/mount.h>
+#endif
#include <sys/types.h>
#include <dirent.h>
#include <ctype.h>
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 <sys/statfs.h>
+#endif
/*
* If possible then don't depend on internal libc __SWORD_TYPE type.