summaryrefslogtreecommitdiff
path: root/lib/sha256.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-04-26 21:50:27 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-04-26 21:50:27 -0400
commita8a5dbc01dc9373923e3274c2dd4341845c655b4 (patch)
tree08456f4ff3f61a3b81ac2b2a7d53df335bff59d9 /lib/sha256.c
parentba0cb3fe960d8653cbbc2358f4e392417af4d98a (diff)
lib: Actually include the header file
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/sha256.c')
-rw-r--r--lib/sha256.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sha256.c b/lib/sha256.c
index a0c6eac420..f98a758821 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -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
/*