Skip to content
Snippets Groups Projects
Commit 64ad838f authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/esp_mphal: Implement libc's errno.

Using __errno() function, and redirect it to use mp_stream_errno from
stream module. This is pre-requisite for integrating with 3rd-party libs,
like BerkeleyDB.
parent 617bda27
No related branches found
No related tags found
No related merge requests found
...@@ -259,3 +259,8 @@ int ets_esf_free_bufs(int idx) { ...@@ -259,3 +259,8 @@ int ets_esf_free_bufs(int idx) {
} }
return cnt; return cnt;
} }
extern int mp_stream_errno;
int *__errno() {
return &mp_stream_errno;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment