]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Actually include the header file
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 27 Apr 2017 01:50:27 +0000 (21:50 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 27 Apr 2017 01:50:27 +0000 (21:50 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/sha256.c

index a0c6eac4200dc771f0d9aca23741ebeedf26eb3f..f98a758821816964dc74f10134b4ad81025d1117 100644 (file)
@@ -36,6 +36,8 @@ be32dec(const void *pp)
         return ((uint32_t)(p[3]) + ((uint32_t)(p[2]) << 8) +
             ((uint32_t)(p[1]) << 16) + ((uint32_t)(p[0]) << 24));
 }
+#else
+#include <sys/endian.h>
 #endif
 
 #if !HAVE_DECL_BE32ENC
@@ -49,6 +51,8 @@ be32enc(void *pp, uint32_t x)
         p[1] = (x >> 16) & 0xff;
         p[0] = (x >> 24) & 0xff;
 }
+#else
+#include <sys/endian.h>
 #endif
 
 /*