]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Fix some *bsd build issues introduced by EIGRP code
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 26 Apr 2017 19:16:29 +0000 (15:16 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 26 Apr 2017 19:16:29 +0000 (15:16 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/sha256.c

index c7588a5f18725509f2f032bc329da7d67a873cc1..4a933875f8d7ad09fc2c9668d11081ee2501a139 100644 (file)
@@ -27,6 +27,7 @@
 #include <zebra.h>
 #include "sha256.h"
 
+#ifdef GNU_LINUX
 static inline uint32_t
 be32dec(const void *pp)
 {
@@ -46,6 +47,7 @@ be32enc(void *pp, uint32_t x)
         p[1] = (x >> 16) & 0xff;
         p[0] = (x >> 24) & 0xff;
 }
+#endif
 
 /*
  * Encode a length len/4 vector of (uint32_t) into a length len vector of