]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Handle glibc partial header inclusions
authorGuillem Jover <guillem@hadrons.org>
Fri, 11 Oct 2013 03:11:42 +0000 (05:11 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 21 Oct 2013 03:35:17 +0000 (05:35 +0200)
commit86cbff385a756f428091441674a5867603b1c910
treef841d722b88b8f98136e857acc4126c3b0c04088
parentee04e8de14e49f9cf2bf2f7c90e1314c6ba0e500
Handle glibc partial header inclusions

The glibc headers use selective inclusions through the __need_NAME
mechanism to avoid circular dependencies.

The problem is that if we are being overlaid, and have been requested
a partial inclusion, when we pass control to the system header, then
we might miss definitions needed by our own header, resulting in build
failures.

Workaround that by catching current partial requests, and skip the
current inclusion.
include/bsd/stdio.h
include/bsd/wchar.h