aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGeorgi Valkov <gvalkov@abv.bg>2022-03-03 17:04:38 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-03-05 18:01:04 +0100
commit1324403eb6c65baa77dd83d1aa9fbd385b877826 (patch)
treeaa22aa8a7bbe3ca29385d0736d977f8b0d967b18 /scripts
parent545cabee9ed0fc2c75dd5f4503bbb8b1333a009a (diff)
downloadupstream-1324403eb6c65baa77dd83d1aa9fbd385b877826.tar.gz
upstream-1324403eb6c65baa77dd83d1aa9fbd385b877826.tar.bz2
upstream-1324403eb6c65baa77dd83d1aa9fbd385b877826.zip
mkhash: fix build errors on FreeBSD 13.0
be64enc, be16dec, and be32dec are declared on FreeBSD 13.0, in /usr/include/sys/endian.h so we should not declare them. Fixes the following error during feeds update: staging_dir/host/bin/mkhash: No such file or directory gcc scripts/mkhash.c scripts/mkhash.c:111:1: error: redefinition of 'be64enc' 111 | be64enc(void *buf, uint64_t u) Signed-off-by: Georgi Valkov <gvalkov@abv.bg>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mkhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mkhash.c b/scripts/mkhash.c
index ed3d42d4c3..a28d5fd537 100644
--- a/scripts/mkhash.c
+++ b/scripts/mkhash.c
@@ -105,7 +105,6 @@ be32enc(void *buf, uint32_t u)
p[2] = ((uint8_t) ((u >> 8) & 0xff));
p[3] = ((uint8_t) (u & 0xff));
}
-#endif
static void
be64enc(void *buf, uint64_t u)
@@ -132,6 +131,7 @@ be32dec(const void *buf)
return (((uint32_t) be16dec(p)) << 16) | be16dec(p + 2);
}
+#endif
#define MD5_DIGEST_LENGTH 16