From 5ec53b92b35fc0d3d3047e7f61f7f3e7b6b19d94 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 22 Sep 2016 13:37:22 +0200 Subject: [PATCH] tools/firmware-utils: fix portability issue in mkmerakifw-old Fixes build failure on Mac OS X Signed-off-by: Felix Fietkau --- src/mkmerakifw-old.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkmerakifw-old.c b/src/mkmerakifw-old.c index 01b9b31..05317c2 100644 --- a/src/mkmerakifw-old.c +++ b/src/mkmerakifw-old.c @@ -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)); } -- 2.30.2