summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-23 16:51:56 +0100
committerHaru <haru@dotalux.com>2014-01-23 17:14:09 +0100
commite68d860dbaa6b1bcf8104463cd3001ae946b7d4e (patch)
tree38f6757fbc2d4ad34e89b3d48d5ed221a3125147 /src/map/packets_struct.h
parent22b7f90297184775ad94d8cb4806e8664c78d934 (diff)
downloadhercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.tar.gz
hercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.tar.bz2
hercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.tar.xz
hercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.zip
Compatibility fixes for NetBSD and Solaris
- Fixed some warnings in NetBSD (5.x and 6.x) and Solaris (11) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 8f0989f3d..1156f4465 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -205,7 +205,9 @@ enum packet_headers {
npcmarketopenType = 0x9d5,
};
+#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
#pragma pack(push, 1)
+#endif // not NetBSD < 6 / Solaris
/**
* structs for data
@@ -939,6 +941,8 @@ struct packet_npc_market_open {
} list[1000];/* TODO: whats the actual max of this? */
} __attribute__((packed));
+#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
#pragma pack(pop)
+#endif // not NetBSD < 6 / Solaris
#endif /* _PACKETS_STRUCT_H_ */