summaryrefslogtreecommitdiff
path: root/src/rtp.cc
diff options
context:
space:
mode:
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));