diff options
author | Jaremy Creechley <creechley@gmail.com> | 2020-08-31 03:48:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 11:48:54 +0200 |
commit | a76ae8f79584c5a491861daf2efda9908b21e488 (patch) | |
tree | 606a21bb285e5f03bf5a93709b151ec0cb34ec92 /lib/pure/nativesockets.nim | |
parent | b5424b826e57c791a751bf31b69549c7d8daab0b (diff) | |
download | Nim-a76ae8f79584c5a491861daf2efda9908b21e488.tar.gz |
Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) (#15250)
* Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) Adding FreeRTOS/LwIP to compiler: * adding freertos option * dyncalls for freertos * add freertos to posix os list * adding lwip option Setting up networking FreeRTOS/LwIP Port: * setting up lwip network for freertos * fixing posix / networking for freertos * disable setInheritable for freerots * using lwip for net control items * Fix builds by ignoring lib/posix/posix_freertos_consts.nim similar to lib/posix/posix_other_consts.nim
Diffstat (limited to 'lib/pure/nativesockets.nim')
-rw-r--r-- | lib/pure/nativesockets.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim index 49a1192df..0b0c4b398 100644 --- a/lib/pure/nativesockets.nim +++ b/lib/pure/nativesockets.nim @@ -269,7 +269,7 @@ proc getAddrInfo*(address: string, port: Port, domain: Domain = AF_INET, let socketPort = if sockType == SOCK_RAW: "" else: $port var gaiResult = getaddrinfo(address, socketPort, addr(hints), result) if gaiResult != 0'i32: - when useWinVersion: + when useWinVersion or defined(freertos): raiseOSError(osLastError()) else: raiseOSError(osLastError(), $gai_strerror(gaiResult)) |