Re: dhcpcd5: FTBFS on Hurd-i386

2022-07-28 Thread Samuel Thibault
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 
> #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.

Samuel



Re: dhcpcd5: FTBFS on Hurd-i386

2022-07-28 Thread Martin-Éric Racine
On Fri, Jul 8, 2022 at 3:11 PM Martin-Éric Racine
 wrote:
>
> (non-subscriber; please keep me in CC)
>
> On Fri, Jul 1, 2022 at 6:31 PM Martin-Éric Racine
>  wrote:
> >
> > > ../compat/rbtree.h:50:10: fatal error: sys/endian.h: No such file or 
> > > directory
> > > 50 | #include 
> > > Probably  can be used instead?
> >
> > Would you have a patch I could test on Debian and later submit to upstream?
>
> This seems to be the relevant ./configure fragment:
>
> *
> if [ -z "$BE64ENC" ]; then
> printf "Testing for be64enc ... "
> cat <_be64enc.c
> #include 
> #include 
> int main(void) {
> be64enc(NULL, 0);
> return 0;
> }
> EOF
> if $XCC _be64enc.c -o _be64enc 2>&3; then
> BE64ENC=yes
> else
> BE64ENC=no
> fi
> echo "$BE64ENC"
> rm -f _be64enc.c _be64enc
> fi
> if [ "$BE64ENC" = no ]; then
> echo "#include  \"compat/endian.h\"" >>$CONFIG_H
> fi
> *

Actually, where it barfs is here:

#if !defined(__linux__) && !defined(__QNX__) && !defined(__sun)
#include 
#else
#include "endian.h"
#endif

What is the equivalent define for Hurd?

>From what I could google, __GNU__ or __MACH__ might be possible
choices, but I'm not sure which one applies here.

Martin-Éric