gst/gstpoll.c: Fix compilation of GstPoll with mingw32. Fixes bug #526236.

Original commit message from CVS:
Patch by: Damien Lespiau <damien dot lespiau at gmail dot com>
* gst/gstpoll.c:
Fix compilation of GstPoll with mingw32. Fixes bug #526236.
This commit is contained in:
Damien Lespiau 2008-04-05 10:58:11 +00:00 committed by Sebastian Dröge
parent 878e4d9204
commit 2c3a6718be
2 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2008-04-05 Sebastian Dröge <slomo@circular-chaos.org>
Patch by: Damien Lespiau <damien dot lespiau at gmail dot com>
* gst/gstpoll.c:
Fix compilation of GstPoll with mingw32. Fixes bug #526236.
2008-04-04 Wim Taymans <wim.taymans@collabora.co.uk> 2008-04-04 Wim Taymans <wim.taymans@collabora.co.uk>
* docs/design/draft-latency.txt: * docs/design/draft-latency.txt:

View file

@ -56,12 +56,6 @@
#include "config.h" #include "config.h"
#endif #endif
#ifndef _MSC_VER
#define _GNU_SOURCE 1
#include <sys/poll.h>
#include <sys/time.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
@ -77,6 +71,9 @@
#include <winsock2.h> #include <winsock2.h>
#define EINPROGRESS WSAEINPROGRESS #define EINPROGRESS WSAEINPROGRESS
#else #else
#define _GNU_SOURCE 1
#include <sys/poll.h>
#include <sys/time.h>
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif