px4_sem: use px4_sem on all POSIX system

This uses the "fake" px4_sem based on mutex and condition_variable on
all POSIX system, not just macOS and Cygwin. This means that we can
change px4_sem_timedwait under the hood and inject the simulated time.
This commit is contained in:
Julian Oes
2018-12-22 10:32:18 +01:00
parent 3e6e1f5c2b
commit 98ae0186e9
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -50,7 +50,7 @@
#define sem_setprotocol(s,p)
#endif
#if defined(__PX4_DARWIN) || defined(__PX4_CYGWIN)
#if defined(__PX4_DARWIN) || defined(__PX4_CYGWIN) || defined(__PX4_POSIX)
__BEGIN_DECLS