mkhash: fix build errors on FreeBSD 13.0
authorGeorgi Valkov <gvalkov@abv.bg>
Thu, 3 Mar 2022 15:04:38 +0000 (17:04 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 5 Mar 2022 17:01:04 +0000 (18:01 +0100)
commit1324403eb6c65baa77dd83d1aa9fbd385b877826
treeaa22aa8a7bbe3ca29385d0736d977f8b0d967b18
parent545cabee9ed0fc2c75dd5f4503bbb8b1333a009a
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>
scripts/mkhash.c