summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/has/getmntinfo.c10
-rw-r--r--build/header.mk1
2 files changed, 11 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);
+}
diff --git a/build/header.mk b/build/header.mk
index 2cd13fa..52dcb6a 100644
--- a/build/header.mk
+++ b/build/header.mk
@@ -24,6 +24,7 @@ HEADERS := \
gen/has/getdents.h \
gen/has/getdents64.h \
gen/has/getdents64-syscall.h \
+ gen/has/getmntinfo.h \
gen/has/getprogname.h \
gen/has/getprogname-gnu.h \
gen/has/max-align-t.h \