mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
RTEMS: Harmonize MAXNAMLEN and NAME_MAX
Override MAXNAMLEN definition in <dirent.h> and make sure it equals NAME_MAX. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
parent
cd1b883526
commit
e692cfc121
@ -50,6 +50,10 @@ struct dirent {
|
||||
char d_name[NAME_MAX + 1];
|
||||
};
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
#define MAXNAMLEN NAME_MAX
|
||||
#endif
|
||||
|
||||
int scandir ( const char *dirname,
|
||||
struct dirent *** namelist,
|
||||
int (*select)(const struct dirent *),
|
||||
|
Loading…
x
Reference in New Issue
Block a user