Fixes for qurt build

Added missing functions that were added for other targets but not for qurt.

Added workaround for missing sem_timedwait(). This may have a performance
impact until a sem_timedwait is supported.

std::to_string is not supported by the hexagon compiler

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2016-01-08 08:49:36 +01:00
committed by Lorenz Meier
parent 1edd9d5a9a
commit 5bc2019fd5
9 changed files with 90 additions and 12 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ static void hrt_unlock(void)
px4_sem_post(&_hrt_lock);
}
#if defined(__APPLE__) && defined(__MACH__)
#if (defined(__APPLE__) && defined(__MACH__)) || defined(__PX4_QURT)
#include <time.h>
#include <sys/time.h>
#define CLOCK_REALTIME 0