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:
Sebastian Huber 2017-01-25 07:07:12 +01:00 committed by Corinna Vinschen
parent cd1b883526
commit e692cfc121
1 changed files with 4 additions and 0 deletions

View File

@ -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 *),