[Bug] __wait_status_to_int() is expected to be a macro
Corinna Vinschen
corinna-cygwin@cygwin.com
Fri Aug 24 15:26:00 GMT 2018
On Aug 24 00:13, David Stacey wrote:
> On 12/06/18 12:45, Eric Blake wrote:
> > On 06/12/2018 03:48 AM, Corinna Vinschen wrote:
> > > On Jun 8 12:43, Eric Blake wrote:
> > > > On 06/08/2018 12:26 PM, Hans-Bernhard Bröker wrote:
> > > > > Am 08.06.2018 um 17:16 schrieb Denis Nikiforov:
> > > > > > /usr/include/boost/process/detail/posix/is_running.hpp:18:1: error:
> > > > > > non-constant condition for static assertion
> > > > > > static_assert(!WIFEXITED(still_active), "Internal Error");
> > > > > > ^~~~~~~~~~~~~
> > > > > >
> > > > > > __wait_status_to_int must be a macros but it's redefined
> > > > > > as a function.
> > >
> > > But, assuming I'm completely off-track above and a macro is really
> > > desired:
> > >
> > > Defining __wait_status_to_int as function is C++-specific. I don't
> > > think
> > > this is really required. A quick test implies the C macro definition in
> > > sys/wait.h is sufficent for C++ as well.
> >
> > Yes, I think you're right on that front.
>
> Apologies for reviving an old thread, but I ran into the same problem today.
> Is there any chance we could have a macro-only '__wait_status_to_int' in
> Cygwin 2.11.0, please?
Here's the glibc approach:
https://sourceware.org/git/?p=glibc.git;a=commit;h=b49ab5f4503f36dcbf43f821f817da66b2931fe6
So glibc/Linux doesn't provide `union wait' at all since 2016.
I'm inclined to do the same. Thoughts?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180824/3c800240/attachment.sig>
More information about the Cygwin
mailing list