[PATCH v2 17/20] lib/cobalt: Move XN_USE_TIME64_SYSCALL to wrappers_time64.c
Florian Bezdeka <[email protected]>
| Newsgroups | dev.linux.lists.xenomai |
|---|---|
| Message-ID | <20260302-wip-flo-fix-time64-32bit-native-v2-17-7caefce29bcd@siemens.com> |
The usage of XN_USE_TIME64_SYSCALL is now limited to wrappers_time64.c. Moving to clean up. Signed-off-by: Florian Bezdeka <[email protected]> --- lib/cobalt/internal.h | 5 ----- lib/cobalt/wrappers_time64.c | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cobalt/internal.h b/lib/cobalt/internal.h index 049ab3fc4d1047a1cf0ed3bd9a193938be85826a..0703c721758fdc778708cae70a0e9d53c6fb8eef 100644 --- a/lib/cobalt/internal.h +++ b/lib/cobalt/internal.h @@ -25,11 +25,6 @@ #include <cobalt/sys/cobalt.h> #include "current.h" -#if defined(__USE_TIME_BITS64) || __WORDSIZE == 64 || \ - (defined(__SYSCALL_WORDSIZE) && __SYSCALL_WORDSIZE == 64) -#define XN_USE_TIME64_SYSCALL -#endif - extern void *cobalt_umm_private; extern void *cobalt_umm_shared; diff --git a/lib/cobalt/wrappers_time64.c b/lib/cobalt/wrappers_time64.c index cd7f05197dc3a9b8aca71d9e0a7468933a220ebf..024d227046833ca8be6b8941ef99e8442c20e009 100644 --- a/lib/cobalt/wrappers_time64.c +++ b/lib/cobalt/wrappers_time64.c @@ -30,6 +30,11 @@ #include <sys/time.h> #include <time.h> +#if defined(__USE_TIME_BITS64) || __WORDSIZE == 64 || \ + (defined(__SYSCALL_WORDSIZE) && __SYSCALL_WORDSIZE == 64) +#define XN_USE_TIME64_SYSCALL +#endif + /** * Get the resolution of the specified clock. * @ingroup cobalt_api_time -- 2.53.0