filesrc: rearrange sys/stat.h inclusion point for MinGW
authorРуслан Ижбулатов <lrn1986@gmail.com>
Mon, 30 Apr 2012 16:29:21 +0000 (20:29 +0400)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 30 Apr 2012 20:35:02 +0000 (21:35 +0100)
gstplugin.h used to include this for us, but doesn't any longer.

https://bugzilla.gnome.org/show_bug.cgi?id=675171

plugins/elements/gstfilesrc.c

index 8f55d1f..26bd4a8 100644 (file)
@@ -42,6 +42,7 @@
 
 #include <stdio.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #ifdef G_OS_WIN32
 #include <io.h>                 /* lseek, open, close, read */
 /* On win32, stat* default to 32 bit; we need the 64-bit
@@ -56,7 +57,6 @@
  * _stat*, since we're explicitly overriding that */
 #undef _INC_STAT_INL
 #endif
-#include <sys/stat.h>
 #include <fcntl.h>
 
 #ifdef HAVE_UNISTD_H