From: Vincent Torri Date: Sat, 12 Dec 2015 10:53:35 +0000 (+0100) Subject: Eina test: declare clock_gettime() by including time.h, like it should be X-Git-Tag: upstream/1.20.0~7911 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b368eb127388f1f3a11061d0c5b57b35c6180d4;p=platform%2Fupstream%2Fefl.git Eina test: declare clock_gettime() by including time.h, like it should be --- diff --git a/src/tests/eina/eina_test_lock.c b/src/tests/eina/eina_test_lock.c index 02c6286..d1ff010 100644 --- a/src/tests/eina/eina_test_lock.c +++ b/src/tests/eina/eina_test_lock.c @@ -16,9 +16,11 @@ * if not, see . */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include #include "eina_suite.h" #include "Eina.h" @@ -217,7 +219,6 @@ START_TEST(eina_test_rwlock) fail_if(counter != 7200); fail_if(eina_rwlock_release(&mutex) != EINA_LOCK_SUCCEED); -#ifndef _WIN32 fail_if(eina_lock_take(&mtcond) != EINA_LOCK_SUCCEED); clock_gettime(CLOCK_REALTIME, &ts); eina_condition_timedwait(&cond, 0.050); @@ -226,7 +227,6 @@ START_TEST(eina_test_rwlock) fail_if(delay < 50); fail_if(delay > 200); fail_if(eina_lock_release(&mtcond) != EINA_LOCK_SUCCEED); -#endif eina_thread_join(thread);