gst/gstregistrybinary.c: Include io.h for write() and close() when building with MSVC. Fixes bug #520877.

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.
This commit is contained in:
Ole André Vadla Ravnås 2008-03-07 13:19:12 +00:00 committed by Sebastian Dröge
parent 3c9dda6df9
commit 7185de8a67
2 changed files with 14 additions and 1 deletions

View file

@ -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> 2008-03-07 Stefan Kost <ensonic@users.sf.net>
* configure.ac: * configure.ac:

View file

@ -6,7 +6,7 @@
* gstregistrybinary.c: GstRegistryBinary object, support routines * gstregistrybinary.c: GstRegistryBinary object, support routines
* *
* This library is free software; you can redistribute it and/or * 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 * License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version. * version 2 of the License, or (at your option) any later version.
* *
@ -51,6 +51,10 @@
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#if defined (_MSC_VER) && _MSC_VER >= 1400
#include <io.h>
#endif
#include <gst/gst_private.h> #include <gst/gst_private.h>
#include <gst/gstconfig.h> #include <gst/gstconfig.h>
#include <gst/gstelement.h> #include <gst/gstelement.h>