Commit f75baabc authored by Henning Schild's avatar Henning Schild Committed by Philippe Gerum
Browse files

cobalt/kernel: fix clock_adjtime() compile error



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's avatarHenning Schild <henning.schild@siemens.com>
parent 807d07b3
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment