summaryrefslogtreecommitdiffstats
path: root/lib/sha256.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-04-26 21:16:29 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-04-26 21:16:29 +0200
commit4f13df624b92037126110778994bd8dbc0f5226b (patch)
tree047cf368c7a120f3ac863914397529eb4b8a9316 /lib/sha256.c
parentMerge remote-tracking branch 'origin/master' into EIGRP (diff)
downloadfrr-4f13df624b92037126110778994bd8dbc0f5226b.tar.xz
frr-4f13df624b92037126110778994bd8dbc0f5226b.zip
lib: Fix some *bsd build issues introduced by EIGRP code
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/sha256.c')
-rw-r--r--lib/sha256.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sha256.c b/lib/sha256.c
index c7588a5f1..4a933875f 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -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