From 1f53e7d00c375efb32e2e468f91a42668653d5f0 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 13 Jan 2017 10:28:46 +0000 Subject: fix crashes in x32 __tls_get_addr x32 has another gratuitous difference to all other archs: it passes an array of 64bit values to __tls_get_addr(). usually it is an array of size_t. --- src/internal/pthread_impl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/internal/pthread_impl.h') diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 757b86ad..ae0ab1c5 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -97,6 +97,10 @@ struct __timer { #define DTP_OFFSET 0 #endif +#ifndef tls_mod_off_t +#define tls_mod_off_t size_t +#endif + #define SIGTIMER 32 #define SIGCANCEL 33 #define SIGSYNCCALL 34 -- cgit v1.2.1