summaryrefslogtreecommitdiff
path: root/src/rtp.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-10 15:03:01 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-10 15:03:01 +0100
commit51808638634f608270ca186e7157bf02531fb197 (patch)
tree8e3c7e46f6378d71207cbb94840269c200e8ba1c /src/rtp.cc
parent8da2861036b14da10498635d2c38cc876e83ac89 (diff)
Fix include for ntoh et al. on windows.
Diffstat (limited to 'src/rtp.cc')
-rw-r--r--src/rtp.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rtp.cc b/src/rtp.cc
index 767a506..78674bf 100644
--- a/src/rtp.cc
+++ b/src/rtp.cc
@@ -28,9 +28,15 @@
#include "rtp.h"
#include <string.h>
-#include <arpa/inet.h>
#include <stdio.h>
+// For ntoh et al.
+#ifdef WIN32
+#include <winsock2.h>
+#else
+#include <arpa/inet.h>
+#endif
+
RTP::RTP()
{
memset(&header, 0, sizeof(header));