]> xenbits.xensource.com Git - unikraft/libs/python3.git/commitdiff
include/pyconfig.h: Use value 8 for SIZEOF_PTHREAD_T
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Wed, 9 Nov 2022 07:04:54 +0000 (09:04 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 10 Nov 2022 11:52:25 +0000 (11:52 +0000)
This is the value used by Musl (`sizoef(pthread_t)`), as `pthread_t` is
defined as `unsigned long`.

Signed-off-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request-Closes: #9

include/pyconfig.h

index b9283bcfc38adc6696d6d9b3641fca97d048b729..201d7af0097ae1764fc887752de11ddb082be1da 100644 (file)
 #define SIZEOF_PTHREAD_KEY_T 4
 
 /* The size of `pthread_t', as computed by sizeof. */
-#define SIZEOF_PTHREAD_T 16
+#define SIZEOF_PTHREAD_T 8
 
 /* The size of `short', as computed by sizeof. */
 #define SIZEOF_SHORT 2