summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2019-10-27 05:19:44 -0700
committerTom Rini <trini@konsulko.com>2019-10-28 13:32:51 -0400
commitccd4398fa71e305158ec53f4cd5b1f7fad27caaf (patch)
treec2281cf410442e19266419ddf2355a8908604cdc /tools
parent10289b4ed9f68bf3cd99d54acd4efdf7a96e281b (diff)
downloadu-boot-ccd4398fa71e305158ec53f4cd5b1f7fad27caaf.tar.gz
tools: ifwitool: Define __packed when it is not defined
Some compilers may provide __packed define for us. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/ifwitool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/ifwitool.c b/tools/ifwitool.c
index 2e020a8282..543e9d4e70 100644
--- a/tools/ifwitool.c
+++ b/tools/ifwitool.c
@@ -10,7 +10,9 @@
#include <getopt.h>
#include "os_support.h"
+#ifndef __packed
#define __packed __attribute__((packed))
+#endif
#define KiB 1024
#define ALIGN(x, a) __ALIGN_MASK((x), (typeof(x))(a) - 1)
#define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))