Merge branch 'bugfix/add-MAXNAMLEN-definition' into 'release/v4.3'

newlib: add the definition of MAXNAMLEN in sys/dirent.h (backport v4.3)

See merge request espressif/esp-idf!13757
This commit is contained in:
Angus Gratton 2021-06-22 07:12:56 +00:00
commit 97f007c08c

View File

@ -42,7 +42,12 @@ struct dirent {
#define DT_UNKNOWN 0
#define DT_REG 1
#define DT_DIR 2
char d_name[256]; /*!< zero-terminated file name */
#if __BSD_VISIBLE
#define MAXNAMLEN 255
char d_name[MAXNAMLEN+1]; /*!< zero-terminated file name */
#else
char d_name[256];
#endif
};
DIR* opendir(const char* name);