Commit 533806c
[clock_time] Fix rt_timespec_to_tick availability for POSIX semaphores
- Moved rt_timespec_to_tick outside of RT_USING_CLOCK_TIME guard
- Function now available with just RT_USING_POSIX_CLOCK defined
- Fixes undefined reference error when building with POSIX semaphores
- Maintains backward compatibility with configurations that don't use clock_time yet
Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>1 parent c7d1918 commit 533806c
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
753 | 764 | | |
754 | 765 | | |
755 | 766 | | |
| |||
784 | 795 | | |
785 | 796 | | |
786 | 797 | | |
787 | | - | |
| 798 | + | |
788 | 799 | | |
789 | 800 | | |
790 | 801 | | |
| |||
0 commit comments