summaryrefslogtreecommitdiffstats
path: root/src/parthumax.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-11 14:23:16 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-11 14:23:16 +0200
commit67054372873f2ed5414da7fff1cb5744148289d6 (patch)
treea8cd9501bcfc1e1efec8ca6603e7f11b0ad2ec0c /src/parthumax.c
parentefc94ee87ac3b4e3ecf4fb3ab4adac2ef0a6278f (diff)
add gcc_struct attribute to all __packed__ structure
do not use fseeko() with mingw32 gcc compiler
Diffstat (limited to 'src/parthumax.c')
-rw-r--r--src/parthumax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parthumax.c b/src/parthumax.c
index 58ea514..63625ec 100644
--- a/src/parthumax.c
+++ b/src/parthumax.c
@@ -64,13 +64,13 @@ struct partition_humax {
uint32_t num_sectors;
uint32_t unk2;
uint32_t start_sector;
-} __attribute__ ((__packed__));
+} __attribute__ ((gcc_struct, __packed__));
struct humaxlabel {
char unk1[0x1be];
struct partition_humax partitions[4];
uint16_t magic;
-} __attribute__ ((__packed__));
+} __attribute__ ((gcc_struct, __packed__));
arch_fnct_t arch_humax=
{