From fe8f406cc663f1930cce4bb1ef23c01623d93c14 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 7 Jan 2019 20:09:20 +0100 Subject: [PATCH] fcntl.h: expose AT_EMPTY_PATH with _GNU_SOURCE only Signed-off-by: Corinna Vinschen --- newlib/libc/include/sys/_default_fcntl.h | 2 ++ 1 file changed, 2 insertions(+) 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) */