[platform] fix errno undefined on some libc (#4865)

This commit is contained in:
Jiacheng Guo
2020-04-21 23:20:33 -07:00
committed by GitHub
parent c034fd0c0c
commit 25b29a1ade
+4
View File
@@ -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: