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:
Eric Anholt 2004-10-13 07:38:00 +00:00
parent d80237db62
commit 1ba103c3ca

View file

@ -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_")));