afuse: fix darwin build

This commit is contained in:
Austin Horstman
2024-11-05 14:16:52 -06:00
parent 9da04cc7db
commit 265c6a8046
2 changed files with 18 additions and 0 deletions
@@ -0,0 +1,15 @@
diff --git a/configure.ac b/configure.ac
index ef07d70..2da26aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,9 +27,9 @@ if test "$have_fuse_opt_parse" = no; then
fi
AM_CONDITIONAL(FUSE_OPT_COMPAT, test "$have_fuse_opt_parse" = no)
-AC_CHECK_FUNCS([setxattr fdatasync getline fgetln])
+AC_CHECK_FUNCS([setxattr getline fgetln])
AC_CONFIG_FILES([Makefile
src/Makefile
compat/Makefile])
+3
View File
@@ -22,8 +22,11 @@ stdenv.mkDerivation rec {
autoreconfHook
pkg-config
];
buildInputs = [ fuse ];
patches = [ ./001-darwin-fdatasync.patch ];
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
# Fix the build on macOS with macFUSE installed
substituteInPlace configure.ac --replace \