- minor fixes for Windows build integrated into HASQ
This commit is contained in:
@@ -35,7 +35,11 @@ public:
|
||||
uint16_t mEtherType; /* IP? ARP? RARP? etc */
|
||||
};
|
||||
|
||||
#if defined(TARGET_WIN)
|
||||
struct /*__attribute__((packed))*/ LinuxSllHeader
|
||||
#else
|
||||
struct __attribute__((packed)) LinuxSllHeader
|
||||
#endif
|
||||
{
|
||||
uint16_t mPacketType;
|
||||
uint16_t mARPHRD;
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
# include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
#if !defined(TARGET_WIN)
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <assert.h>
|
||||
|
||||
DatagramSocket::DatagramSocket()
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
|
||||
#include "jrtplib/src/rtprawpacket.h"
|
||||
#include "jrtplib/src/rtpipv4address.h"
|
||||
#include <alloca.h>
|
||||
#if !defined(TARGET_WIN)
|
||||
# include <alloca.h>
|
||||
#endif
|
||||
#include <sstream>
|
||||
#include <tuple>
|
||||
|
||||
|
||||
@@ -10,7 +10,10 @@
|
||||
#endif
|
||||
#include <set>
|
||||
#include <assert.h>
|
||||
#include <unistd.h> // Responsible for close() call on Linux
|
||||
|
||||
#if !defined(TARGET_WIN)
|
||||
# include <unistd.h> // Responsible for close() call on Linux
|
||||
#endif
|
||||
|
||||
#include "HL_SocketHeap.h"
|
||||
#include "HL_Log.h"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Uuid::Uuid()
|
||||
{
|
||||
#if defined(TARGET_WIN) || defined(TARGET_LINUX) || defined(TARGET_OSX)
|
||||
memset(mUuid, 0, sizeof mUuid);
|
||||
memset(&mUuid, 0, sizeof mUuid);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user