Create replacement endian.h if needed.

Remove #ifdef HAVE_ENDIAN_H wrapper.  ok djm@
This commit is contained in:
Darren Tucker
2025-09-05 19:55:20 +10:00
parent a60721c894
commit 6aac2beaa5
2 changed files with 2 additions and 4 deletions

View File

@@ -457,7 +457,6 @@ AC_CHECK_HEADERS([ \
crypt.h \ crypt.h \
crypto/sha2.h \ crypto/sha2.h \
dirent.h \ dirent.h \
endian.h \
elf.h \ elf.h \
err.h \ err.h \
features.h \ features.h \
@@ -529,6 +528,7 @@ AC_CHECK_HEADERS([ \
# '#ifdef HAVE_FOO_H'. If we create any such headers, add the path to includes. # '#ifdef HAVE_FOO_H'. If we create any such headers, add the path to includes.
compatincludes=no compatincludes=no
AC_CHECK_HEADERS([ \ AC_CHECK_HEADERS([ \
endian.h \
ifaddrs.h \ ifaddrs.h \
libgen.h \ libgen.h \
paths.h \ paths.h \

View File

@@ -32,9 +32,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include <signal.h> #include <signal.h>
#ifdef HAVE_ENDIAN_H #include <endian.h>
# include <endian.h>
#endif
#include "sshkey.h" #include "sshkey.h"
#include "kex.h" #include "kex.h"