Enough already with the KDE bug!
Raja R Harinath
harinath@cs.umn.edu
Wed Dec 31 17:43:00 GMT 1997
Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de> writes:
> So maybe you are saying the implementation of WIFEXITED in glibc is
> wrong. Well, maybe. But why was the bug fix then in KDE and not in
> glibc?
It's been fixed in glibc-2.0.6. Here's the relevant info:
1997-11-30 06:01 Ulrich Drepper <drepper@cygnus.com>
* posix/sys/wait.h (__WAIT_INT): Don't use complex version with
__typeof for C++ since this fails for class members.
Reported by Neal Becker <neal@ctd.comsat.com>.
diff -durpN glibc-2.0.5c/posix/sys/wait.h glibc-2.0.6/posix/sys/wait.h
--- glibc-2.0.5c/posix/sys/wait.h Tue Nov 5 23:23:09 1996
+++ glibc-2.0.6/posix/sys/wait.h Sun Nov 30 00:11:13 1997
@@ -38,7 +38,7 @@ __BEGIN_DECLS
/* Lots of hair to allow traditional BSD use of `union wait'
as well as POSIX.1 use of `int' for the status word. */
-#ifdef __GNUC__
+#if defined __GNUC__ && !defined __cplusplus
#define __WAIT_INT(status) \
(__extension__ ({ union { __typeof(status) __in; int __i; } __u; \
__u.__in = (status); __u.__i; }))
HTH
- Hari
--
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash
More information about the Gcc
mailing list