mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 04:07:47 +00:00
[posix] fix typo in error handling on macOS (#5394)
This commit is contained in:
@@ -33,6 +33,7 @@ main()
|
||||
{
|
||||
"$(dirname "$0")"/check-posix-build-autotools
|
||||
"$(dirname "$0")"/check-posix-build-cmake
|
||||
"$(dirname "$0")"/check-posix-build-cmake -DOT_DAEMON=ON
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
||||
@@ -50,11 +50,11 @@ build()
|
||||
main()
|
||||
{
|
||||
reset_source
|
||||
build
|
||||
build "$@"
|
||||
|
||||
if [[ $OSTYPE != "darwin"* ]]; then
|
||||
reset_source
|
||||
build -DOT_POSIX_CONFIG_RCP_BUS=SPI
|
||||
build -DOT_POSIX_CONFIG_RCP_BUS=SPI "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -237,8 +237,8 @@ static void InitializeSessionSocket(void)
|
||||
// if we have SO_NOSIGPIPE, then set it. Otherwise, we're going
|
||||
// to simply ignore it.
|
||||
#if defined(SO_NOSIGPIPE)
|
||||
rval = 1;
|
||||
VerifyOrExit((rval = setsockopt(sSessionSocket, SOL_SOCKET, SO_NOSIGPIPE, &rval, sizeof(rval)) != -1, OT_NOOP));
|
||||
rval = setsockopt(sSessionSocket, SOL_SOCKET, SO_NOSIGPIPE, &rval, sizeof(rval));
|
||||
VerifyOrExit(rval != -1, OT_NOOP);
|
||||
#else
|
||||
#warning "no support for MSG_NOSIGNAL or SO_NOSIGPIPE"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user