[ BTW I got a JIRA mail for this bug report. ]

Hi!

On Sat, 2015-12-12 at 15:10:59 +0100, Vincent Bernat wrote:
>  ❦ 12 décembre 2015 14:23 +0100, Guillem Jover <guil...@debian.org> :
> > This is due to the overlays, some headers now expect declarations from
> > the overlayed headers, bu they are not requsting them and just use the
> > system ones. I've added a unit test to catch this in the future, and
> > will be fixing it for an upload targetted for later today.
> 
> Do you mean that if we hit this bug, we are doing something wrong?

Not at all, sorry for the possible confusing wording.

> I am including bsd/unistd.h, shouldn't I?

That's fine, and it is supported, although it makes portability harder.

The problem is that bsd/unistd.h now requires internally bsd/sys/cdefs.h,
and it only includes sys/cdefs.h, which in your case is the system
sys/cdefs.h not the overlaid bsd/sys/cdefs.h, which would get transparently
used if using «pkg-config --cflags libbsd-overlay» for example.

The overlay is intended to be used to make portability easier, so that the
code can work out-of-the-box on BSD and non-BSD systems.

Thanks,
Guillem

Reply via email to