]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Create replacement endian.h if needed.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 5 Sep 2025 09:55:20 +0000 (19:55 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 5 Sep 2025 09:55:20 +0000 (19:55 +1000)
Remove #ifdef HAVE_ENDIAN_H wrapper.  ok djm@

configure.ac
kexmlkem768x25519.c

index b174f5cc8025c931c2915d6d8e8e44f6748c4fc7..bc18f8ee9eef373fc184abf87d25a7f98da13f51 100644 (file)
@@ -457,7 +457,6 @@ AC_CHECK_HEADERS([ \
        crypt.h \
        crypto/sha2.h \
        dirent.h \
-       endian.h \
        elf.h \
        err.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.
 compatincludes=no
 AC_CHECK_HEADERS([ \
+    endian.h \
     ifaddrs.h \
     libgen.h \
     paths.h \
index 7ade7a7f904f8ae1cec443b867d20eb0ebacd70a..2585d1db39351c9fcb1fd67df817eca0f085d0b1 100644 (file)
@@ -32,9 +32,7 @@
 #include <stdbool.h>
 #include <string.h>
 #include <signal.h>
-#ifdef HAVE_ENDIAN_H
-# include <endian.h>
-#endif
+#include <endian.h>
 
 #include "sshkey.h"
 #include "kex.h"