Subject: [PATCH] fcntl-h: add AT_NO_AUTOMOUNT

From: Pádraig Brady <[email-masked]>
Date: Mon, 7 Mar 2022 14:08:51 +0000

* lib/fcntl.in.h: Define AT_NO_AUTOMOUNT to 0 where not defined.
This is available on Linux since 2.6.38.
---
 ChangeLog      | 6 ++++++
 lib/fcntl.in.h | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index c5a80fd3f3..e3f0ed216c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-03-07  Pádraig Brady  <[email-masked]>
+
+	fcntl-h: add AT_NO_AUTOMOUNT
+	* lib/fcntl.in.h: Define AT_NO_AUTOMOUNT to 0 where not defined.
+	This is available on Linux since 2.6.38.
+
 2022-03-01  Paul Eggert  <[email-masked]>
 
 	Create lib/Makefile.am after gnulib-comp.m4
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index 3e0c302af3..9270ced897 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -435,6 +435,10 @@ _GL_WARN_ON_USE (openat, "openat is not portable - "
 # define AT_EACCESS 4
 #endif
 
+/* Ignore this flag if not supported.  */
+#ifndef AT_NO_AUTOMOUNT
+# define AT_NO_AUTOMOUNT 0
+#endif
 
 #endif /* _@GUARD_PREFIX@_FCNTL_H */
 #endif /* _@GUARD_PREFIX@_FCNTL_H */
-- 
2.26.2