diff mbox series

[uclibc-ng-devel,2/2] sys/stat.h: Make fchmod() available if __USE_XOPEN2K

Message ID 20240206121053.399112-2-paul@crapouillou.net
State Accepted
Headers show
Series [uclibc-ng-devel,1/2] sys/stat.h: Make S_ISSOCK() available if __USE_XOPEN2K | expand

Commit Message

Paul Cercueil Feb. 6, 2024, 12:10 p.m. UTC
The fchmod() function is present in POSIX 2001.12.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
 include/sys/stat.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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