On Fri, Jul 29, 2022 at 2:09 AM Martin-Éric Racine <[email protected]> wrote: > > On Thu, Jul 28, 2022 at 10:38 PM Samuel Thibault <[email protected]> wrote: > > > > Martin-Éric Racine, le jeu. 28 juil. 2022 21:30:42 +0300, a ecrit: > > > Actually, where it barfs is here: > > > > > > #if !defined(__linux__) && !defined(__QNX__) && !defined(__sun) > > > #include <sys/endian.h> > > > #else > > > #include "endian.h" > > > #endif > > > > > > What is the equivalent define for Hurd? > > > > It's just the same on the Hurd as on Linux, since that's just coming > > from glibc. > > Yet it FTBFS on Hurd at that precise point. That suggets we need to > patch that spot. Not knowing Hurd, I have no idea what the correct > fragment would be.
If you want the Mach kernel, use __MACH__. If you want GNU Hurd, use __GNU__ or __gnu_hurd__. The Pre-defined Operating System Macros list at Sourceforge is usually reliable. Also see https://sourceforge.net/p/predef/wiki/OperatingSystems/ . Jeff

