Problem with: Re: [PATCH] Allow usage of union wait for wait() functions and macros
Christian Franke
Christian.Franke@t-online.de
Wed Dec 7 23:17:00 GMT 2011
Christopher Faylor wrote:
>
> I guess this is why there was a __INSIDE_CYGWIN__ test.
>
> Christian, could you submit a new patch to rectify this problem?
OK, will try soon.
> ...
> /usr/local/src/trunk/objdir.withada/./prev-gcc/g++
> -B/usr/local/src/trunk/objdir.withada/./prev-gcc/
> ...
> -I/usr/local/src/trunk/gcc/gcc/../libdecnumber/bid -I../libdecnumber
> /usr/local/src/trunk/gcc/gcc/ada/adaint.c -o ada/adaint.o
> In file included from /usr/local/src/trunk/gcc/gcc/system.h:346:0,
> from /usr/local/src/trunk/gcc/gcc/ada/adaint.c:107:
> /usr/include/sys/wait.h: In function 'int __wait_status_to_int(const wait&)':
> /usr/include/sys/wait.h:77:61: error: declaration of C function 'int
> __wait_status_to_int(const wait&)' conflicts with
> /usr/include/sys/wait.h:75:12: error: previous declaration 'int
> __wait_status_to_int(int)' here
This suggests that sys/wait.h is included within an extern "C" { ... }
block.
If this is the case then an extern "C++" {...} block around the C++
inline functions of sys/wait.h should fix this.
See:
http://cygwin.com/ml/cygwin-patches/2011-q4/msg00005.html
Christian
More information about the Cygwin-patches
mailing list