mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-06 04:28:27 +02:00
Use attributes instead of pragmas for weak symbols on gcc 2.95 as well. Using pragmas may result in the symbols being undefined with big -O. (FreeBSD ports/69708, Masakazu HIGAKI <higamasa@dream.com>)
This commit is contained in:
parent
d80237db62
commit
1ba103c3ca
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ typedef pthread_t xthread_t;
|
|||
#else
|
||||
#include <pthread.h>
|
||||
typedef pthread_t xthread_t;
|
||||
#if __GNUC__ >= 3
|
||||
#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
|
||||
xthread_t pthread_self() __attribute__ ((weak, alias ("_Xthr_self_stub_")));
|
||||
int pthread_mutex_init() __attribute__ ((weak, alias ("_Xthr_zero_stub_")));
|
||||
int pthread_mutex_destroy() __attribute__ ((weak, alias ("_Xthr_zero_stub_")));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue