tests: playback: include stdlib.h unconditionally
authorTim-Philipp Müller <tim@centricular.com>
Sat, 7 Dec 2019 14:22:06 +0000 (14:22 +0000)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 9 Dec 2019 07:33:55 +0000 (07:33 +0000)
Like we do elsewhere. And drop the check for the header.
Also remove some superfluous unistd.h includes.

meson.build
tests/icles/playback/test4.c
tests/icles/playback/test5.c
tests/icles/playback/test6.c
tests/icles/playback/test7.c

index a8d7134..ff7f1ca 100644 (file)
@@ -115,7 +115,6 @@ check_headers = [
   ['HAVE_PROCESS_H', 'process.h'],
   ['HAVE_SMMINTRIN_H', 'smmintrin.h'],
   ['HAVE_STDINT_H', 'stdint.h'],
-  ['HAVE_STDLIB_H', 'stdlib.h'],
   ['HAVE_STRINGS_H', 'strings.h'],
   ['HAVE_STRING_H', 'string.h'],
   ['HAVE_SYS_SOCKET_H', 'sys/socket.h'],
index d036d7f..bf3d66e 100644 (file)
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#ifdef HAVE_STDLIB_H
+
 #include <stdlib.h>             /* exit() */
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
 
 #include <gst/gst.h>
 
index b841116..0f7f7b7 100644 (file)
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#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 144f99b..25f04de 100644 (file)
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_STDLIB_H
+
 #include <stdlib.h>             /* exit */
-#endif
+
 #include <gst/gst.h>
 
 static void
index b9abcb5..90544ff 100644 (file)
@@ -19,9 +19,7 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>             /* exit() */
-#endif
 #include <gst/gst.h>
 
 #define UPDATE_INTERVAL 500