qtmux: fix includes for lseek
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 23 Mar 2009 10:17:39 +0000 (11:17 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 12 Apr 2011 19:32:11 +0000 (20:32 +0100)
--

gst/quicktime/gstqtmux.c

index 430e979fa10db7bd642373ef22f796bdfeb512a9..4b4344b0166daa22c68273a322970f24b66da11a 100644 (file)
@@ -75,6 +75,7 @@
 #include <gst/gst.h>
 #include <gst/base/gstcollectpads.h>
 
 #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
 #ifdef G_OS_WIN32
 #include <io.h>                 /* lseek, open, close, read */
 #undef lseek
 #define off_t guint64
 #endif
 
 #define off_t guint64
 #endif
 
+#ifdef HAVE_UNISTD_H
+#  include <unistd.h>
+#endif
+
 #include "gstqtmux.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_qt_mux_debug);
 #include "gstqtmux.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_qt_mux_debug);