From 7185de8a67336a042c2c5334df667cf2f1b7d3b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Fri, 7 Mar 2008 13:19:12 +0000 Subject: [PATCH] gst/gstregistrybinary.c: Include io.h for write() and close() when building with MSVC. Fixes bug #520877. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Patch by: Ole André Vadla Ravnås * gst/gstregistrybinary.c: Include io.h for write() and close() when building with MSVC. Fixes bug #520877. --- ChangeLog | 9 +++++++++ gst/gstregistrybinary.c | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 56c5fd7..a47c0fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-03-07 Sebastian Dröge + + Patch by: Ole André Vadla Ravnås + + + * gst/gstregistrybinary.c: + Include io.h for write() and close() when building with MSVC. Fixes + bug #520877. + 2008-03-07 Stefan Kost * configure.ac: diff --git a/gst/gstregistrybinary.c b/gst/gstregistrybinary.c index 23c3218..676de23 100644 --- a/gst/gstregistrybinary.c +++ b/gst/gstregistrybinary.c @@ -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. * @@ -51,6 +51,10 @@ #include #include +#if defined (_MSC_VER) && _MSC_VER >= 1400 +#include +#endif + #include #include #include -- 2.7.4