Fix POSIX guards for POSIX.1-2024 extensions

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2024-08-15 18:27:28 +02:00
parent 13c89a620b
commit ca31784fef
3 changed files with 7 additions and 7 deletions

View File

@ -80,9 +80,9 @@ int scandirat(int, const char *, struct dirent ***,
const struct dirent **));
int versionsort(const struct dirent **, const struct dirent **);
#endif
#if __POSIX_VISIBLE >= 200809
#if __POSIX_VISIBLE >= 202405
ssize_t posix_getdents(int, void *, size_t, int);
#endif /* __POSIX_VISIBLE >= 200809 */
#endif /* __POSIX_VISIBLE >= 202405 */
__END_DECLS
#endif /*_DIRENT_H_*/

View File

@ -90,7 +90,7 @@ locale_t duplocale (locale_t);
locale_t uselocale (locale_t);
#endif /* __POSIX_VISIBLE >= 200809 */
#if __POSIX_VISIBLE >= 200809 /* FIXME? Starting with issue 8 */
#if __POSIX_VISIBLE >= 202405
const char *getlocalename_l (int, struct __locale_t *);
#endif

View File

@ -37,7 +37,7 @@ struct dirent
char d_name[NAME_MAX + 1];
};
#if __POSIX_VISIBLE >= 200809
#if __POSIX_VISIBLE >= 202405
#define DT_FORCE_TYPE 0x01 /* Suggested by SUS Base Specs Issue 8 */
typedef __uint16_t reclen_t;
@ -54,13 +54,13 @@ struct posix_dent
__uint32_t __d_internal1;
char d_name[NAME_MAX + 1];
};
#endif /* __POSIX_VISIBLE >= 200809 */
#endif /* __POSIX_VISIBLE >= 202405 */
#define d_fileno d_ino /* BSD compatible definition */
typedef struct __DIR DIR;
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 202405
/* File types for `d_type'. */
enum
{
@ -83,7 +83,7 @@ enum
DT_WHT = 14
# define DT_WHT DT_WHT
};
#endif /* __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 */
#endif /* __BSD_VISIBLE || __POSIX_VISIBLE >= 202405 */
#if __BSD_VISIBLE
/* Convert between stat structure types and directory types. */