diff --git a/script/check-posix-build b/script/check-posix-build index 5be4ed8fb..493566e08 100755 --- a/script/check-posix-build +++ b/script/check-posix-build @@ -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 "$@" diff --git a/script/check-posix-build-cmake b/script/check-posix-build-cmake index 9fb5ff6c6..84649cdbf 100755 --- a/script/check-posix-build-cmake +++ b/script/check-posix-build-cmake @@ -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 } diff --git a/src/posix/platform/uart.cpp b/src/posix/platform/uart.cpp index 825e4226e..b1e73856b 100644 --- a/src/posix/platform/uart.cpp +++ b/src/posix/platform/uart.cpp @@ -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