mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-27 09:02:33 +00:00
tools/firmware-utils: fix portability issue in mkmerakifw-old
Fixes build failure on Mac OS X Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
a84d51c85d
commit
64568cac91
@ -129,7 +129,7 @@ static void usage(int status)
|
||||
|
||||
static void writel(unsigned char *buf, size_t offset, uint32_t value)
|
||||
{
|
||||
value = htobe32(value);
|
||||
value = htonl(value);
|
||||
memcpy(buf + offset, &value, sizeof(uint32_t));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user