| author | |
| committer | |
| log | 06f70c030af35d052784cd448f779c21cb9ea177 |
| tree | 570c6b1fe9e3670b14ba1a579b22e563a847dd78 |
| parent | 0d66112643286a754101eb71382f860ae1874012 |
* pthread_key_t should also be available for non-android platforms
* Also change the type to c_uint because Linux pthreadtypes.h typedefs it as "unsigned int"
Partially addresses #139501 files changed, 1 insertions(+), 3 deletions(-)
lib/std/c/linux.zig+1-3| ... | ... | @@ -320,9 +320,7 @@ pub const pthread_rwlock_t = switch (native_abi) { |
| 320 | 320 | size: [56]u8 align(@alignOf(usize)) = [_]u8{0} ** 56, |
| 321 | 321 | }, |
| 322 | 322 | }; |
| 323 | pub usingnamespace if (native_abi == .android) struct { | |
| 324 | pub const pthread_key_t = c_int; | |
| 325 | } else struct {}; | |
| 323 | pub const pthread_key_t = c_uint; | |
| 326 | 324 | pub const sem_t = extern struct { |
| 327 | 325 | __size: [__SIZEOF_SEM_T]u8 align(@alignOf(usize)), |
| 328 | 326 | }; |