add the definition of MAXNAMLEN in sys/dirent.h

This commit is contained in:
WangQixiang 2021-05-12 16:07:19 +08:00
parent 83445ba63e
commit c9c8633cba

View File

@ -24,6 +24,10 @@
* for reference.
*/
#if !defined(MAXNAMLEN) && __BSD_VISIBLE
#define MAXNAMLEN 1024
#endif
/**
* @brief Opaque directory structure
*/