gst/gstregistrybinary.c: Include io.h for write() and close() when building with...
authorOle André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
Fri, 7 Mar 2008 13:19:12 +0000 (13:19 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 7 Mar 2008 13:19:12 +0000 (13:19 +0000)
Original commit message from CVS:
Patch by: Ole André Vadla Ravnås
<ole dot andre dot ravnas at tandberg dot com>
* gst/gstregistrybinary.c:
Include io.h for write() and close() when building with MSVC. Fixes
bug #520877.

ChangeLog
gst/gstregistrybinary.c

index 56c5fd7..a47c0fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-03-07  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       Patch by: Ole André Vadla Ravnås
+           <ole dot andre dot ravnas at tandberg dot com>
+
+       * gst/gstregistrybinary.c:
+       Include io.h for write() and close() when building with MSVC. Fixes
+       bug #520877.
+
 2008-03-07  Stefan Kost  <ensonic@users.sf.net>
 
        * configure.ac:
index 23c3218..676de23 100644 (file)
@@ -6,7 +6,7 @@
  * gstregistrybinary.c: GstRegistryBinary object, support routines
  *
  * This library is free software; you can redistribute it and/or
- * modify it ulnder the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Library General Public
  * License as published by the Free Software Foundation; either
  * version 2 of the License, or (at your option) any later version.
  *
 #include <errno.h>
 #include <stdio.h>
 
+#if defined (_MSC_VER) && _MSC_VER >= 1400
+#include <io.h>
+#endif
+
 #include <gst/gst_private.h>
 #include <gst/gstconfig.h>
 #include <gst/gstelement.h>