benchmarks: eine: include header for using time()
authorStefan Schmidt <stefan@osg.samsung.com>
Fri, 22 Dec 2017 14:57:55 +0000 (15:57 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 10 Jan 2018 11:08:13 +0000 (20:08 +0900)
../src/benchmarks/eina/eina_bench_sort.c: In function ‘eina_bench_sort_eina’:
../src/benchmarks/eina/eina_bench_sort.c:52:10: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
    srand(time(NULL));

Found due to the nice quite build output in our meson feature branch.

src/benchmarks/eina/eina_bench_sort.c

index c3c9d9f..fc2b343 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <time.h>
 
 #ifdef EINA_BENCH_HAVE_GLIB
 # include <glib.h>