fixes for Solaris compiler

This commit is contained in:
Guenter Obiltschnig 2015-03-27 20:40:25 +01:00
parent 4dd625725b
commit 39b242952d

View File

@ -23,8 +23,14 @@
namespace Poco {
namespace Net {
#pragma pack(push,1)
typedef struct _NTPPacketData {
#if !defined(POCO_COMPILER_SUN)
#pragma pack(push, 1)
#else
#pragma pack(1)
#endif
struct NTPPacketData
{
Poco::Int8 mode:3;
Poco::Int8 vn:3;
Poco::Int8 li:2;
@ -38,8 +44,12 @@ typedef struct _NTPPacketData {
Poco::Int64 ots;
Poco::Int64 vts;
Poco::Int64 tts;
} NTPPacketData;
};
#if !defined(POCO_COMPILER_SUN)
#pragma pack(pop)
#else
#pragma pack()
#endif
NTPPacket::NTPPacket() :