summaryrefslogtreecommitdiffstats
path: root/build/has/getmntinfo.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-07 13:24:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-07 15:13:28 -0400
commitc7320b94af8db53b0a4b0a96e37d6e81a0d4a68c (patch)
tree4697291e8010def6460a110932e9e1c167df561f /build/has/getmntinfo.c
parentcf032e8775a70729c397d731a5e2e1ecb58f4877 (diff)
downloadbfs-c7320b94af8db53b0a4b0a96e37d6e81a0d4a68c.tar.xz
build: Add a check for getmntinfo()
Diffstat (limited to 'build/has/getmntinfo.c')
-rw-r--r--build/has/getmntinfo.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/has/getmntinfo.c b/build/has/getmntinfo.c
new file mode 100644
index 0000000..90ef5fb
--- /dev/null
+++ b/build/has/getmntinfo.c
@@ -0,0 +1,10 @@
+// Copyright © Tavian Barnes <tavianator@tavianator.com>
+// SPDX-License-Identifier: 0BSD
+
+#include <stddef.h>
+#include <sys/types.h>
+#include <sys/mount.h>
+
+int main(void) {
+ return getmntinfo(NULL, MNT_WAIT);
+}