Explorar o código

[libc error] 编译错误PATH_MAX 未定义,移除 mq 中的 PATH_MAX 判断 (#7550)

zhkag hai 1 ano
pai
achega
662aa1b7e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/libc/posix/ipc/mqueue.c

+ 1 - 1
components/libc/posix/ipc/mqueue.c

@@ -138,7 +138,7 @@ mqd_t mq_open(const char *name, int oflag, ...)
     /* lock posix mqueue list */
     rt_sem_take(&posix_mq_lock, RT_WAITING_FOREVER);
     int len = rt_strlen(name);
-    if (len > PATH_MAX || len > RT_NAME_MAX)
+    if (len > RT_NAME_MAX)
     {
         rt_set_errno(ENAMETOOLONG);
         goto __return;