mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-14 23:08:00 +02: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_ENDIAN_H
|
||||
#define LIBBSD_SYS_ENDIAN_H
|
||||
|
||||
#ifdef LIBBSD_OVERLAY
|
||||
#include_next <endian.h>
|
||||
#else
|
||||
#include <endian.h>
|
||||
#endif
|
||||
|
||||
#ifndef LIBBSD_SYS_ENDIAN_H
|
||||
#define LIBBSD_SYS_ENDIAN_H
|
||||
|
||||
#ifndef _BYTE_ORDER
|
||||
#define _BYTE_ORDER __BYTE_ORDER
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user