gst/: Include stdlib.h and unistd.h only if the appropriate HAVE_*_H macro is defined.
authorMichael Smith <msmith@xiph.org>
Mon, 28 Apr 2008 22:18:49 +0000 (22:18 +0000)
committerMichael Smith <msmith@xiph.org>
Mon, 28 Apr 2008 22:18:49 +0000 (22:18 +0000)
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.

ChangeLog
gst/playback/test4.c
gst/playback/test5.c
gst/playback/test6.c
gst/tcp/gstmultifdsink.c

index e16bcff..e4f2af1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 62323db..8e7b335 100644 (file)
  * 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>
 
index 96f197f..ace1596 100644 (file)
  * 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;
index 9942d0b..3928dcf 100644 (file)
  * 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
index 7dd0fe8..6b70e6f 100644 (file)
 #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>