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];
|
char d_name[NAME_MAX + 1];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if __BSD_VISIBLE
|
||||||
|
#define MAXNAMLEN NAME_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
int scandir ( const char *dirname,
|
int scandir ( const char *dirname,
|
||||||
struct dirent *** namelist,
|
struct dirent *** namelist,
|
||||||
int (*select)(const struct dirent *),
|
int (*select)(const struct dirent *),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user