1 From 7291289ba0c052e45e2a0330642318798d6a4caf Mon Sep 17 00:00:00 2001
2 From: Bernd Kuhls <bernd.kuhls@t-online.de>
3 Date: Fri, 27 Jan 2017 16:02:27 +0100
4 Subject: [PATCH 1/1] asplib_CPUTimer.h: Fix time.h include
6 According to https://linux.die.net/man/3/clock_gettime time.h needs to
7 be included instead of sys/time.h.
9 This patch fixes a build error found by buildroot autobuilders:
11 http://autobuild.buildroot.net/results/cc0/cc0b928ee24a526b7c82fd3f391e2be024a14578//
13 /home/peko/autobuild/instance-1/output/build/libasplib-be7fac89218a84b75f7598e3d76625ece99296f2/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.cpp: In member function 'void asplib::CCPUTimer::start_Timer()':
14 /home/peko/autobuild/instance-1/output/build/libasplib-be7fac89218a84b75f7598e3d76625ece99296f2/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.cpp:69:19: error: 'CLOCK_REALTIME' was not declared in this scope
15 clock_gettime(CLOCK_REALTIME, &m_startTime);
17 Patch sent upstream: https://github.com/AchimTuran/asplib/pull/34
19 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
21 asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
24 diff --git a/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h b/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h
25 index a61ff49..a9676e0 100644
26 --- a/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h
27 +++ b/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h
31 #elif defined(TARGET_LINUX)
32 - #include <sys/time.h>