summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gst/rtp/rtp-packet.c10
-rw-r--r--gst/rtp/rtp-packet.h8
2 files changed, 11 insertions, 7 deletions
diff --git a/gst/rtp/rtp-packet.c b/gst/rtp/rtp-packet.c
index f464ec1b..a6fca8b2 100644
--- a/gst/rtp/rtp-packet.c
+++ b/gst/rtp/rtp-packet.c
@@ -23,15 +23,13 @@
#include <config.h>
#endif
-#include "rtp-packet.h"
-
-#include <glib.h>
#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
#include <string.h>
#include <errno.h>
+#include <netinet/in.h>
+#include <glib.h>
+
+#include "rtp-packet.h"
Rtp_Packet
rtp_packet_new_take_data(gpointer data, guint data_len)
diff --git a/gst/rtp/rtp-packet.h b/gst/rtp/rtp-packet.h
index 224e7898..f19f8c6e 100644
--- a/gst/rtp/rtp-packet.h
+++ b/gst/rtp/rtp-packet.h
@@ -22,8 +22,14 @@
#ifndef _RTP_PACKET_H
#define _RTP_PACKET_H 1
-#include <glib.h>
#include <netinet/in.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <glib.h>
+
+#ifdef __sun
+#include <sys/uio.h>
+#endif
#ifdef __cplusplus
extern "C" {