This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Temporary patch for the __sigset_t problem in STL and glibc
- To: egcs at cygnus dot com, egcs-bugs at cygnus dot com
- Subject: Temporary patch for the __sigset_t problem in STL and glibc
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Wed, 25 Feb 1998 09:44:26 +0100
- Reply-To: Manfred Hollstein <manfred at s-direktnet dot de>
Sorry, I didn't save this thread, hence I don't know the exact subject.
Anyway, I just thought, well this will be a problem with gcc-2.8.1 and
libstdc++-2.8.1 which I recently set up, too.
How about this patch until we find a better (long term) solution?
Wed Feb 25 09:34:03 1998 Manfred Hollstein <manfred@s-direktnet.de>
* stl_alloc.h (sigset_t): Add define if __GLIBC__ >= 2 and
__STRICT_ANSI__ is defined.
diff -rcp -x CVS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el libstdc++-2.8.1.orig/libstdc++/stl/stl_alloc.h libstdc++-2.8.1/libstdc++/stl/stl_alloc.h
*** libstdc++-2.8.1.orig/libstdc++/stl/stl_alloc.h Tue Feb 24 15:08:44 1998
--- libstdc++-2.8.1/libstdc++/stl/stl_alloc.h Wed Feb 25 09:36:29 1998
***************
*** 70,75 ****
--- 70,78 ----
// POSIX Threads
// This is dubious, since this is likely to be a high contention
// lock. Performance may not be adequate.
+ # if defined (__GLIBC__) && (__GLIBC__ >= 2) && defined (__STRICT_ANSI__)
+ # define sigset_t __sigset_t
+ # endif
# include <pthread.h>
# define __NODE_ALLOCATOR_LOCK \
if (threads) pthread_mutex_lock(&__node_allocator_lock)