]> xenbits.xensource.com Git - unikraft/libs/python3.git/commit
include/pyconfig.h: Define `SIZEOF_PHTREAD_T` based on chosen libc
authorEduard Vintilă <eduard.vintila47@gmail.com>
Sun, 9 Apr 2023 19:09:53 +0000 (22:09 +0300)
committerUnikraft <monkey@unikraft.io>
Fri, 11 Aug 2023 18:11:11 +0000 (18:11 +0000)
commitdc93f534f5fd65e9848f61a92c811fe99993a7d9
tree1729a4990182c44bf9305e9c3163cbb40292a804
parent2d070a4840f93ebd5f760aa73e7b707fb708d51c
include/pyconfig.h: Define `SIZEOF_PHTREAD_T` based on chosen libc

The size of the `pthread_t` type varies between the libc/posix-threads
implementations, so we need to define the `SIZEOF_PTHREAD_T` macro
accordingly. This commit implements an additional
check for the Pthread Embedded library.

Signed-off-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #12
include/pyconfig.h