]> git.sesse.net Git - pistorm/blobdiff - platforms/amiga/piscsi/piscsi.h
Fix PiSCSI bug that somehow only triggered with -lstdc++
[pistorm] / platforms / amiga / piscsi / piscsi.h
index 488f9de93d911a5b861c24fb179a389f9914ae9a..547596f126e2c5080a1fb972a6899181dca5b147 100644 (file)
@@ -90,6 +90,7 @@ struct piscsi_fs {
 //  .long 0 /* device file name */
 //  .long 0 /* unit */
 //  .long 0 /* flags */
+#pragma pack(4)
 struct DosEnvec {
     uint32_t de_TableSize;          /* Size of Environment vector */
     uint32_t de_SizeBlock;          /* in longwords: standard value is 128 */
@@ -116,6 +117,7 @@ struct DosEnvec {
 
 };
 
+#pragma pack(4)
 struct pihd_dosnode_data {
     uint32_t name_ptr;
     uint32_t dev_name_ptr;
@@ -140,6 +142,7 @@ struct pihd_dosnode_data {
     uint32_t dostype;
 };
 
+#pragma pack(4)
 struct RigidDiskBlock {
     uint32_t   rdb_ID;
     uint32_t   rdb_SummedLongs;
@@ -183,6 +186,7 @@ struct RigidDiskBlock {
     char    rdb_DriveInitName[40];
 };
 
+#pragma pack(4)
 struct DeviceNode {
     uint32_t    dn_Next;
     uint32_t    dn_Type;
@@ -197,6 +201,7 @@ struct DeviceNode {
     uint8_t     *dn_Name;
 };
 
+#pragma pack(4)
 struct PartitionBlock {
     uint32_t   pb_ID;
     uint32_t   pb_SummedLongs;
@@ -212,6 +217,7 @@ struct PartitionBlock {
     uint32_t   pb_EReserved[12];
 };
 
+#pragma pack(4)
 struct SCSICmd_ModeSense6 {
     uint8_t opcode;
     uint8_t reserved_dbd;
@@ -221,6 +227,7 @@ struct SCSICmd_ModeSense6 {
     uint8_t control;
 };
 
+#pragma pack(4)
 struct SCSICmd_RW10 {
     uint8_t opcode;
     uint8_t rdprotect_flags;
@@ -230,6 +237,7 @@ struct SCSICmd_RW10 {
     uint8_t control;
 };
 
+#pragma pack(4)
 struct FileSysHeaderBlock {
     uint32_t   fhb_ID;
     uint32_t   fhb_SummedLongs;