mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-21 07:45:01 +02:00
fixes for Solaris compiler
This commit is contained in:
@@ -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() :
|
||||
|
Reference in New Issue
Block a user