gst/: Include stdlib.h and unistd.h only if the appropriate HAVE_*_H macro is defined.

Original commit message from CVS:
* gst/playback/test4.c:
* gst/playback/test5.c:
* gst/playback/test6.c:
* gst/tcp/gstmultifdsink.c:
Include stdlib.h and unistd.h only if the appropriate HAVE_*_H macro
is defined.
This commit is contained in:
Michael Smith 2008-04-28 22:18:49 +00:00
parent 7916e386ca
commit 802c45b10b
5 changed files with 25 additions and 0 deletions

View file

@ -1,3 +1,12 @@
2008-04-28 Michael Smith <msmith@songbirdnest.com>
* gst/playback/test4.c:
* gst/playback/test5.c:
* gst/playback/test6.c:
* gst/tcp/gstmultifdsink.c:
Include stdlib.h and unistd.h only if the appropriate HAVE_*_H macro
is defined.
2008-04-28 Wim Taymans <wim.taymans@collabora.co.uk>
* gst-libs/gst/audio/gstbaseaudiosink.h:

View file

@ -16,8 +16,12 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_STDLIB_H
#include <stdlib.h> /* exit() */
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <gst/gst.h>

View file

@ -16,8 +16,12 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h> /* exit */
#endif
#include <gst/gst.h>
static GMainLoop *loop;

View file

@ -16,8 +16,12 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h> /* exit */
#endif
#include <gst/gst.h>
static void

View file

@ -117,7 +117,11 @@
#include <gst/gst-i18n-plugin.h>
#include <sys/ioctl.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>