From 4f13df624b92037126110778994bd8dbc0f5226b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 26 Apr 2017 15:16:29 -0400 Subject: [PATCH] lib: Fix some *bsd build issues introduced by EIGRP code Signed-off-by: Donald Sharp --- lib/sha256.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sha256.c b/lib/sha256.c index c7588a5f18..4a933875f8 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -27,6 +27,7 @@ #include #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 -- 2.39.5