Index: gstregistrybinary.c
===================================================================
--- gst/gstregistrybinary.c	(revision 712)
+++ gst/gstregistrybinary.c	(working copy)
@@ -363,7 +363,11 @@
       continue;
 
     if (plugin->flags & GST_PLUGIN_FLAG_CACHED) {
+#if GLIB_CHECK_VERSION(2,25,0)
+      GStatBuf statbuf;
+#else
       struct stat statbuf;
+#endif
 
       if (g_stat (plugin->filename, &statbuf) < 0 ||
           plugin->file_mtime != statbuf.st_mtime ||
