mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 15:47:46 +00:00
[platform] fix errno undefined on some libc (#4865)
This commit is contained in:
@@ -68,7 +68,11 @@ const char *otExitCodeToString(uint8_t aExitCode)
|
||||
break;
|
||||
|
||||
case OT_EXIT_ERROR_ERRNO:
|
||||
#ifdef errno
|
||||
retval = strerror(errno);
|
||||
#else
|
||||
retval = "ErrorNo";
|
||||
#endif
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user