pantry/projects/github.com/util-linux/util-linux/macports.patch
Max Howell 91e05e5e88
fix linux-utils on mac (#835)
* fix linux-utils on mac

Closes #831

* wip

* wip

* wip

* fix up headers

* stupid. $INCLUDE means something to clang

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-03-30 18:47:37 -04:00

26 lines
647 B
Diff

--- lib/procfs.c 2022-02-17 05:28:41.000000000 -0500
+++ lib/procfs.c 2022-04-07 19:10:05.000000000 -0400
@@ -6,7 +6,9 @@
*/
#include <ctype.h>
#include <unistd.h>
-#include <sys/vfs.h>
+//#include <sys/vfs.h>
+#include <sys/param.h>
+#include <sys/mount.h>
#include <errno.h>
#include "c.h"
--- include/statfs_magic.h 2021-02-02 10:41:37.000000000 -0500
+++ include/statfs_magic.h 2021-02-21 23:43:37.000000000 -0500
@@ -1,7 +1,7 @@
#ifndef UTIL_LINUX_STATFS_MAGIC_H
#define UTIL_LINUX_STATFS_MAGIC_H
-#include <sys/statfs.h>
+//#include <sys/statfs.h>
/*
* If possible then don't depend on internal libc __SWORD_TYPE type.