]> begriffs open source - freertos/commit
Fix GCC/Posix port compilation on FreeBSD (#1239) (#1240)
authorJakub Tymejczyk <jakub@tymejczyk.pl>
Fri, 7 Feb 2025 01:21:34 +0000 (02:21 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Feb 2025 01:21:34 +0000 (06:51 +0530)
commitd10ee468114afb06ee6eca8f976c7b953aa5a2b8
treeeb06ce9a4a8e3e492ab2af2f4167598cbccf3b01
parentae0a5913c8b95276e5a53122bfbf6d505a297ba7
Fix GCC/Posix port compilation on FreeBSD (#1239) (#1240)

On FreeBSD pthread_once_t is a struct and cast is required.
Otherwise there's compilation error:
../../mocks/freertos/port.c:261:23: error: expected expression
    hSigSetupThread = PTHREAD_ONCE_INIT;
                      ^
PTHREAD_ONCE_INIT is defined as: { PTHREAD_NEEDS_INIT, NULL } on FreeBSD

Co-authored-by: Jakub Tymejczyk <jakub.tymejczyk@enigma.com.pl>
portable/ThirdParty/GCC/Posix/port.c