summaryrefslogtreecommitdiff
path: root/filesystems/mergerfs/files/patch-src_fs__umount2.hpp
blob: ce291a314c015aad56e45b5bc144e33ab5122d5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/fs_umount2.hpp.orig	2024-02-29 20:41:22 UTC
+++ src/fs_umount2.hpp
@@ -19,7 +19,14 @@
 #pragma once
 
 #include <errno.h>
+#ifdef __linux__
 #include <sys/mount.h>
+#else
+#include <sys/param.h>
+#include <sys/mount.h>
+#define umount2(target, flags) unmount(target, flags)
+#define MNT_DETACH 0
+#endif
 
 #include <string>