فهرست منبع

add the definition of MAXNAMLEN in sys/dirent.h

WangQixiang 4 سال پیش
والد
کامیت
c9c8633cba
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      components/newlib/platform_include/sys/dirent.h

+ 4 - 0
components/newlib/platform_include/sys/dirent.h

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