Temporary patch for the __sigset_t problem in STL and glibc
H.J. Lu
hjl@lucon.org
Wed Feb 25 18:48:00 GMT 1998
>
> 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)
>
That is incorrect. I will send a patch soon.
--
H.J. Lu (hjl@gnu.org)
More information about the Gcc
mailing list