mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-12-24 06:14:34 +01:00
Move overlay inclusions outside of header protection
Glibc tends to include standard headers with special definitions that make few declarations or macros visible, this stomps over the overlay #include_next <> logic. Based-on-patch-by: Robert Millan <rmh@debian.org>
This commit is contained in:
@@ -24,15 +24,15 @@
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef LIBBSD_SYS_CDEFS_H
|
||||
#define LIBBSD_SYS_CDEFS_H
|
||||
|
||||
#ifdef LIBBSD_OVERLAY
|
||||
#include_next <sys/cdefs.h>
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#endif
|
||||
|
||||
#ifndef LIBBSD_SYS_CDEFS_H
|
||||
#define LIBBSD_SYS_CDEFS_H
|
||||
|
||||
/*
|
||||
* Some kFreeBSD headers expect those macros to be set for sanity checks.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user