Skip to content

config.hpp's endian test silently falls back to little-endian #135

@zeha

Description

@zeha

In PowerDNS/pdns#16091 I discovered that config.hpp has an endian check using __BYTE_ORDER, but at least on GCC 15 / GNU libc platforms it doesn't work. Without including <endian.h> the macros are not defined, and config.hpp silently falls back to little endian.

Could an #include <endian.h> be added to config.hpp?

Thanks,
Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions