bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH hurd 27/30] hurd: add intranpayload functions to all hurd typ


From: Samuel Thibault
Subject: Re: [PATCH hurd 27/30] hurd: add intranpayload functions to all hurd types
Date: Tue, 9 Dec 2014 01:54:24 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

David Michael, le Mon 08 Dec 2014 13:45:50 -0500, a écrit :
> On Thu, Nov 27, 2014 at 8:19 AM, Justus Winter
> <4winter@informatik.uni-hamburg.de> wrote:
> > +#ifdef HURD_DEFAULT_PAYLOAD_TO_PORT
> > +#if HURD_DEFAULT_PAYLOAD_TO_PORT
> > +/* Any non-numeric value will fail this test.  If 1 (or any number) is
> > +   given, do not inject the default translator function.  */
> > +#undef HURD_DEFAULT_PAYLOAD_TO_PORT
> > +#endif
> > +#else
> > +   import <hurd/ports.h>;
> > +#define HURD_DEFAULT_PAYLOAD_TO_PORT ports_payload_get_name
> > +#endif
> 
> My glibc builds are failing, and I think it's because of this
> inclusion of <hurd/ports.h> in hurd_types.defs.
> 
> Anything that includes <hurd/signal.h> now gets <hurd/ports.h> (via
> the freshly output <hurd/msg.h>), which includes other files that
> require <hurd/signal.h>, but they aren't getting any of its
> definitions since _HURD_SIGNAL_H is already defined.

Ok, a classical inclusion loop issue.

> Do you have any suggestions to work around this?

I'd say just not include hurd/ports.h, and rather include it from the
users of defs.h.  Yes, that sucks a bit, but it seems to me that other
solutions will bite use more.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]