aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2022-03-11 11:23:47 -0500
committerLukas Fleischer <lfleischer@calcurse.org>2022-03-11 11:23:47 -0500
commit20b23cc32edd4ad8aed1699b3b5d372efeac5c67 (patch)
tree4078122f69f3e062bf32bf648ef02ced0a51adee /src
parentbea73492114c95149733405205483ce56d11125a (diff)
downloadcalcurse-20b23cc32edd4ad8aed1699b3b5d372efeac5c67.tar.gz
calcurse-20b23cc32edd4ad8aed1699b3b5d372efeac5c67.zip
Fix SHA1 calculation on big-endian systems
Add the AC_C_BIGENDIAN macro to determine endianness and set WORDS_BIGENDIAN accordingly. Fixes GitHub issue #397. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r--src/sha1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sha1.c b/src/sha1.c
index 3826c76..6a5f0e3 100644
--- a/src/sha1.c
+++ b/src/sha1.c
@@ -43,6 +43,7 @@
#include <stdlib.h>
#include <string.h>
+#include "config.h"
#include "sha1.h"
#define rol(val, n) (((val) << (n)) | ((val) >> (32 - (n))))