Moving the definition out of the ifdef solves the following error:

include/xenomai/cobalt/kernel/clock.h:260:16: error:
 ‘struct <anonymous>’ has no member named ‘adjust_time’
include/xenomai/cobalt/kernel/clock.h:263:19: error:
 ‘struct <anonymous>’ has no member named ‘adjust_time’

Signed-off-by: Henning Schild <henning.sch...@siemens.com>
---
 include/cobalt/kernel/clock.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/cobalt/kernel/clock.h b/include/cobalt/kernel/clock.h
index bf03c5921..bbdec9357 100644
--- a/include/cobalt/kernel/clock.h
+++ b/include/cobalt/kernel/clock.h
@@ -53,8 +53,6 @@ struct xnclock {
                xnticks_t (*read_monotonic)(struct xnclock *clock);
                int (*set_time)(struct xnclock *clock,
                                const struct timespec *ts);
-               int (*adjust_time)(struct xnclock *clock,
-                                  struct timex *tx);
                xnsticks_t (*ns_to_ticks)(struct xnclock *clock,
                                          xnsticks_t ns);
                xnsticks_t (*ticks_to_ns)(struct xnclock *clock,
@@ -66,6 +64,8 @@ struct xnclock {
                void (*program_remote_shot)(struct xnclock *clock,
                                            struct xnsched *sched);
 #endif
+               int (*adjust_time)(struct xnclock *clock,
+                                  struct timex *tx);
                int (*set_gravity)(struct xnclock *clock,
                                   const struct xnclock_gravity *p);
                void (*reset_gravity)(struct xnclock *clock);
-- 
2.16.1


_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to