You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds platform handling for macOS:
- Guard GCC-only -Wno-stringop-truncation behind a compiler check and
silence Clang warnings promoted to errors by -Werror. Probe each
Clang flag with check_c_compiler_flag() and only apply it when the
compiler is Clang, so older Clang or a GCC build on macOS still works.
- Wire up empty RT/SOCKET libraries and test libraries for Darwin.
- Use the macOS pthread_setname_np signature (current thread only) and
skip pthread_condattr_setclock(CLOCK_MONOTONIC), which is unavailable.
On macOS pthread_cond_timedwait() always uses CLOCK_REALTIME, so the
deadline timespec is built from CLOCK_REALTIME there as well to avoid
premature timeouts or excessively long waits.
- In dlt-daemon.c, scope the Linux-only fifo_size local behind
__linux__ to silence an unused-variable warning on Darwin, and
replace the broken "#elif __QNX__" with "#elif defined(__QNX__)"
so the branch is selected by macro presence rather than its value.
Signed-off-by: Felipe Kellermann <felipek@me.com>
0 commit comments