summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-01-07 20:09:20 +0100
committerCorinna Vinschen <corinna@vinschen.de>2019-01-07 20:09:20 +0100
commitfe8f406cc663f1930cce4bb1ef23c01623d93c14 (patch)
tree92a68d6063e3837a1539d4ec2eef3790db5759bd
parent9443efe0990ad32c1896717ac7c38ff9c8c57073 (diff)
downloadcygnal-fe8f406cc663f1930cce4bb1ef23c01623d93c14.tar.gz
cygnal-fe8f406cc663f1930cce4bb1ef23c01623d93c14.tar.bz2
cygnal-fe8f406cc663f1930cce4bb1ef23c01623d93c14.zip
fcntl.h: expose AT_EMPTY_PATH with _GNU_SOURCE only
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--newlib/libc/include/sys/_default_fcntl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h
index 0647e590f..b3177dd69 100644
--- a/newlib/libc/include/sys/_default_fcntl.h
+++ b/newlib/libc/include/sys/_default_fcntl.h
@@ -166,8 +166,10 @@ extern "C" {
#define AT_SYMLINK_NOFOLLOW 2
#define AT_SYMLINK_FOLLOW 4
#define AT_REMOVEDIR 8
+#if __GNU_VISIBLE
#define AT_EMPTY_PATH 16
#endif
+#endif
#if __BSD_VISIBLE
/* lock operations for flock(2) */