summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2024-02-06 13:10:53 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-02-07 12:17:48 +0100
commit86c65e33a739556c274bf8d8f821f88ef04872de (patch)
tree4b99a4a6872af0bcc6ce761a7d561c8f37dd3151 /include/sys
parent8f602010268851212eb89e8b2fa737e37559db5f (diff)
sys/stat.h: Make fchmod() available if __USE_XOPEN2K
The fchmod() function is present in POSIX 2001.12. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/stat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 6b6ff0047..99a6382a0 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -302,7 +302,7 @@ extern int lchmod (const char *__file, __mode_t __mode)
#endif
/* Set file access permissions of the file FD is open on to MODE. */
-#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
+#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
extern int fchmod (int __fd, __mode_t __mode) __THROW;
#endif