mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-17 20:06:52 +01:00
fixes for Solaris compiler
This commit is contained in:
parent
4dd625725b
commit
39b242952d
@ -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() :
|
||||
|
Loading…
Reference in New Issue
Block a user