From 802c45b10ba855d1ab5cf0c705310dc5c6aa044a Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 28 Apr 2008 22:18:49 +0000 Subject: [PATCH] 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. --- ChangeLog | 9 +++++++++ gst/playback/test4.c | 4 ++++ gst/playback/test5.c | 4 ++++ gst/playback/test6.c | 4 ++++ gst/tcp/gstmultifdsink.c | 4 ++++ 5 files changed, 25 insertions(+) diff --git a/ChangeLog b/ChangeLog index e16bcff..e4f2af1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-04-28 Michael Smith + + * 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 * gst-libs/gst/audio/gstbaseaudiosink.h: diff --git a/gst/playback/test4.c b/gst/playback/test4.c index 62323db..8e7b335 100644 --- a/gst/playback/test4.c +++ b/gst/playback/test4.c @@ -16,8 +16,12 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_STDLIB_H #include /* exit() */ +#endif +#ifdef HAVE_UNISTD_H #include +#endif #include diff --git a/gst/playback/test5.c b/gst/playback/test5.c index 96f197f..ace1596 100644 --- a/gst/playback/test5.c +++ b/gst/playback/test5.c @@ -16,8 +16,12 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_UNISTD_H #include +#endif +#ifdef HAVE_STDLIB_H #include /* exit */ +#endif #include static GMainLoop *loop; diff --git a/gst/playback/test6.c b/gst/playback/test6.c index 9942d0b..3928dcf 100644 --- a/gst/playback/test6.c +++ b/gst/playback/test6.c @@ -16,8 +16,12 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_UNISTD_H #include +#endif +#ifdef HAVE_STDLIB_H #include /* exit */ +#endif #include static void diff --git a/gst/tcp/gstmultifdsink.c b/gst/tcp/gstmultifdsink.c index 7dd0fe8..6b70e6f 100644 --- a/gst/tcp/gstmultifdsink.c +++ b/gst/tcp/gstmultifdsink.c @@ -117,7 +117,11 @@ #include #include + +#ifdef HAVE_UNISTD_H #include +#endif + #include #include #include -- 2.7.4