Browse Source

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>
Paul Cercueil 2 months ago
parent
commit
86c65e33a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/sys/stat.h

+ 1 - 1
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