mkimage: unbreak build on non-linux systems
[openwrt/svn-archive/archive.git] / tools / mkimage / patches / 050-image_h_portability.patch
1 --- a/include/image.h
2 +++ b/include/image.h
3 @@ -34,7 +34,6 @@
4 #define __IMAGE_H__
5
6 #include "compiler.h"
7 -#include <asm/byteorder.h>
8
9 #ifdef USE_HOSTCC
10
11 @@ -191,13 +190,13 @@
12 * all data in network byte order (aka natural aka bigendian).
13 */
14 typedef struct image_header {
15 - __be32 ih_magic; /* Image Header Magic Number */
16 - __be32 ih_hcrc; /* Image Header CRC Checksum */
17 - __be32 ih_time; /* Image Creation Timestamp */
18 - __be32 ih_size; /* Image Data Size */
19 - __be32 ih_load; /* Data Load Address */
20 - __be32 ih_ep; /* Entry Point Address */
21 - __be32 ih_dcrc; /* Image Data CRC Checksum */
22 + uint32_t ih_magic; /* Image Header Magic Number */
23 + uint32_t ih_hcrc; /* Image Header CRC Checksum */
24 + uint32_t ih_time; /* Image Creation Timestamp */
25 + uint32_t ih_size; /* Image Data Size */
26 + uint32_t ih_load; /* Data Load Address */
27 + uint32_t ih_ep; /* Entry Point Address */
28 + uint32_t ih_dcrc; /* Image Data CRC Checksum */
29 uint8_t ih_os; /* Operating System */
30 uint8_t ih_arch; /* CPU architecture */
31 uint8_t ih_type; /* Image Type */