diff --git a/plugins/elements/gstelements.c b/plugins/elements/gstelements.c index bc5f50bc6e..7835a2b60b 100644 --- a/plugins/elements/gstelements.c +++ b/plugins/elements/gstelements.c @@ -56,6 +56,10 @@ static struct _elements_entry _elements[] = { #ifdef HAVE_SYS_SOCKET_H {"fdsrc", GST_RANK_NONE, gst_fd_src_get_type}, {"fdsink", GST_RANK_NONE, gst_fd_sink_get_type}, +#endif +#ifdef _MSC_VER + {"fdsrc", GST_RANK_NONE, gst_fd_src_get_type}, + {"fdsink", GST_RANK_NONE, gst_fd_sink_get_type}, #endif {"filesrc", GST_RANK_PRIMARY, gst_file_src_get_type}, {"identity", GST_RANK_NONE, gst_identity_get_type}, diff --git a/plugins/elements/gstfdsink.c b/plugins/elements/gstfdsink.c index f469449086..9102185be7 100644 --- a/plugins/elements/gstfdsink.c +++ b/plugins/elements/gstfdsink.c @@ -50,14 +50,19 @@ #endif #include +#ifdef HAVE_SYS_SOCKET_H #include +#endif #include #include #ifdef HAVE_UNISTD_H #include #endif #ifdef _MSC_VER -#include +#undef stat +#define stat _stat +#define fstat _fstat +#define S_ISREG(m) (((m)&S_IFREG)==S_IFREG) #endif #include #include diff --git a/plugins/elements/gstfdsrc.c b/plugins/elements/gstfdsrc.c index 0683a2c6ae..36abcd7b47 100644 --- a/plugins/elements/gstfdsrc.c +++ b/plugins/elements/gstfdsrc.c @@ -71,14 +71,19 @@ #endif #include +#ifdef HAVE_SYS_SOCKET_H #include +#endif #include #include #ifdef HAVE_UNISTD_H #include #endif #ifdef _MSC_VER -#include +#undef stat +#define stat _stat +#define fstat _fstat +#define S_ISREG(m) (((m)&S_IFREG)==S_IFREG) #endif #include #include