diff options
author | kris <kris@FreeBSD.org> | 2002-06-07 11:26:24 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-06-07 11:26:24 +0800 |
commit | 829299101c3e2055c517bbfb00f90284e45d9abc (patch) | |
tree | a4d141a0e75048027f92283a3bd82b07230978aa /x11 | |
parent | 9da515ee47165aec61cb8137029c868edc28ebb5 (diff) | |
download | freebsd-ports-gnome-829299101c3e2055c517bbfb00f90284e45d9abc.tar.gz freebsd-ports-gnome-829299101c3e2055c517bbfb00f90284e45d9abc.tar.zst freebsd-ports-gnome-829299101c3e2055c517bbfb00f90284e45d9abc.zip |
Allow this port to build in -current (i.e. with gcc 3.1)
Submitted by: Motoyuki Konno <motoyuki@bsdclub.org>
Diffstat (limited to 'x11')
-rw-r--r-- | x11/XFree86-4-libraries/files/patch-UIThrStubs.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/x11/XFree86-4-libraries/files/patch-UIThrStubs.c b/x11/XFree86-4-libraries/files/patch-UIThrStubs.c new file mode 100644 index 000000000000..af9d011a39ff --- /dev/null +++ b/x11/XFree86-4-libraries/files/patch-UIThrStubs.c @@ -0,0 +1,32 @@ +--- lib/XThrStub/UIThrStubs.c.old Mon Nov 19 06:13:26 2001 ++++ lib/XThrStub/UIThrStubs.c Tue Jun 4 11:39:19 2002 +@@ -99,6 +99,21 @@ + #else + #include <pthread.h> + typedef pthread_t xthread_t; ++#if __GNUC__ >= 3 ++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_"))); ++int pthread_mutex_lock() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++int pthread_mutex_unlock() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++int pthread_cond_init() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++int pthread_cond_destroy() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++int pthread_cond_wait() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++int pthread_cond_signal() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++int pthread_cond_broadcast() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++int pthread_key_create() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++void *pthread_getspecific() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++int pthread_setspecific() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); ++#else /* __GNUC__ */ + #pragma weak pthread_self = _Xthr_self_stub_ + #pragma weak pthread_mutex_init = _Xthr_zero_stub_ + #pragma weak pthread_mutex_destroy = _Xthr_zero_stub_ +@@ -113,6 +128,7 @@ + #pragma weak pthread_key_create = _Xthr_zero_stub_ + #pragma weak pthread_getspecific = _Xthr_zero_stub_ + #pragma weak pthread_setspecific = _Xthr_zero_stub_ ++#endif /* __GNUC__ */ + #if defined(_DECTHREADS_) || defined(linux) + #pragma weak pthread_equal = _Xthr_equal_stub_ /* See Xthreads.h! */ + int |