From 947635d8936276f504f3e71c47a70145ebe5b9d9 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 12 Sep 2012 17:16:41 +0200 Subject: [PATCH] filesink: fix build on Cygwin ... where __fbufsize is not available --- plugins/elements/gstfilesink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c index c434a56..4cb0025 100644 --- a/plugins/elements/gstfilesink.c +++ b/plugins/elements/gstfilesink.c @@ -383,7 +383,8 @@ gst_file_sink_open_file (GstFileSink * sink) sink->buffer = g_malloc (sink->buffer_size); buffer_size = sink->buffer_size; } -#ifdef HAVE_STDIO_EXT_H + /* Cygwin does not have __fbufsize */ +#if defined(HAVE_STDIO_EXT_H) && !defined(__CYGWIN__) GST_DEBUG_OBJECT (sink, "change buffer size %u to %u, mode %d", (guint) __fbufsize (sink->file), buffer_size, mode); #else -- 2.7.4