[gst-cvs] gst-plugins-bad: qtmux: fix includes for lseek

Wim Taymans wtay at kemper.freedesktop.org
Mon Mar 23 09:07:33 PDT 2009


Module: gst-plugins-bad
Branch: master
Commit: fcfc22f6f644227687614bb4cf71a6f63d52a1e9
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=fcfc22f6f644227687614bb4cf71a6f63d52a1e9

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Mon Mar 23 11:17:39 2009 +0100

qtmux: fix includes for lseek

--

---

 gst/qtmux/gstqtmux.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gst/qtmux/gstqtmux.c b/gst/qtmux/gstqtmux.c
index 430e979..4b4344b 100644
--- a/gst/qtmux/gstqtmux.c
+++ b/gst/qtmux/gstqtmux.c
@@ -75,6 +75,7 @@
 #include <gst/gst.h>
 #include <gst/base/gstcollectpads.h>
 
+#include <sys/types.h>
 #ifdef G_OS_WIN32
 #include <io.h>                 /* lseek, open, close, read */
 #undef lseek
@@ -83,6 +84,10 @@
 #define off_t guint64
 #endif
 
+#ifdef HAVE_UNISTD_H
+#  include <unistd.h>
+#endif
+
 #include "gstqtmux.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_qt_mux_debug);





More information about the Gstreamer-commits mailing list