summaryrefslogtreecommitdiffstats
path: root/src/hdaccess.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/hdaccess.c
parentefc94ee87ac3b4e3ecf4fb3ab4adac2ef0a6278f (diff)
add gcc_struct attribute to all __packed__ structure
do not use fseeko() with mingw32 gcc compiler
Diffstat (limited to 'src/hdaccess.c')
-rw-r--r--src/hdaccess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index 8e0634a..f092995 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -135,7 +135,7 @@ struct tdewf_file_header
* 0x00 0x00
*/
uint16_t fields_end;
-} __attribute__ ((__packed__));
+} __attribute__ ((gcc_struct, __packed__));
struct info_file_struct
@@ -875,7 +875,7 @@ typedef struct _scsi_inquiry_data
uint8_t product_revision[4];
uint8_t vendor_specific[20];
uint8_t _reserved3[40];
-} __attribute__((packed)) scsi_inquiry_data_t;
+} __attribute__((gcc_struct,__packed__)) scsi_inquiry_data_t;
#define INQ_CMD_LEN 6
#define INQ_REPLY_LEN sizeof(scsi_inquiry_data_t)