Fixing issue #15302 -- lwip doesn't support signals (#15303)

* Fixing issue #15302 -- lwip doesn't support signals

* Adding test to catch issue #15302 -- lwip/freertos net library
don't try to build / run on windows, it'll compile only but not run

Fixing issue #15302 -- reworking test to compile on other platforms
This commit is contained in:
Jaremy Creechley 2020-09-14 00:57:49 -06:00 • committed by GitHub
commit 6c49767a6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 61 additions and 15 deletions

View file

@ -625,6 +625,10 @@ elif defined(solaris):
# Solaris doesn't have MSG_NOSIGNAL
const
MSG_NOSIGNAL* = 0'i32
elif defined(freertos) or defined(lwip):
# LwIP/FreeRTOS doesn't have MSG_NOSIGNAL
const
MSG_NOSIGNAL* = 0x20'i32
else:
var
MSG_NOSIGNAL* {.importc, header: "<sys/socket.h>".}: cint