gst/gstpoll.c: Fix compilation of GstPoll with mingw32. Fixes bug #526236.
authorDamien Lespiau <damien.lespiau@gmail.com>
Sat, 5 Apr 2008 10:58:11 +0000 (10:58 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Sat, 5 Apr 2008 10:58:11 +0000 (10:58 +0000)
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.

ChangeLog
gst/gstpoll.c

index baa179d..7efc491 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * docs/design/draft-latency.txt:
index 658fcf6..c82a86d 100644 (file)
 #include "config.h"
 #endif
 
-#ifndef _MSC_VER
-#define _GNU_SOURCE 1
-#include <sys/poll.h>
-#include <sys/time.h>
-#endif
-
 #include <sys/types.h>
 
 #ifdef HAVE_UNISTD_H
@@ -77,6 +71,9 @@
 #include <winsock2.h>
 #define EINPROGRESS WSAEINPROGRESS
 #else
+#define _GNU_SOURCE 1
+#include <sys/poll.h>
+#include <sys/time.h>
 #include <sys/socket.h>
 #endif