diff options
author | Mike Holmes <mike.holmes@linaro.org> | 2015-02-27 09:52:35 -0500 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-02-27 18:28:00 +0300 |
commit | d49d9a9e21f4c4498b9767f695810154498511a0 (patch) | |
tree | 5672a2d4906d693f4f225c5b85eb4d2da081bb95 /test | |
parent | af1d5a07365400b689c2b82945cb79ae2dd0c7e5 (diff) |
performance: odp_scheduling: fix c99 implicit declaration of function ‘clock_gettime’
odp_scheduling.c:714:2: error: implicit declaration of function
‘clock_gettime’ [-Werror=implicit-function-declaration]
if (clock_gettime(CLOCK_MONOTONIC, &tp2)) {
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-and-tested-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/performance/odp_scheduling.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c index ae862071d..99f0f9b05 100644 --- a/test/performance/odp_scheduling.c +++ b/test/performance/odp_scheduling.c @@ -10,6 +10,9 @@ * @example odp_example.c ODP example application */ +/* enable clock_gettime */ +#define _POSIX_C_SOURCE 200112L + #include <string.h> #include <stdlib.h> |