diff options
Diffstat (limited to 'sys-utils/hwclock.h')
-rw-r--r-- | sys-utils/hwclock.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys-utils/hwclock.h b/sys-utils/hwclock.h index 37e817314..7830ef60a 100644 --- a/sys-utils/hwclock.h +++ b/sys-utils/hwclock.h @@ -17,8 +17,10 @@ enum { struct hwclock_control { char *date_opt; - unsigned long epoch_option; char *adj_file_name; +#if defined(__linux__) && defined(__alpha__) + unsigned long epoch_option; +#endif #ifdef __linux__ char *rtc_dev_name; #endif @@ -32,7 +34,7 @@ struct hwclock_control { hctosys:1, utc:1, systohc:1, -#ifdef __linux__ +#if defined(__linux__) && defined(__alpha__) getepoch:1, setepoch:1, #endif @@ -67,8 +69,10 @@ extern unsigned long epoch_option; extern double time_diff(struct timeval subtrahend, struct timeval subtractor); /* rtc.c */ +#if defined(__linux__) && defined(__alpha__) extern int get_epoch_rtc(const struct hwclock_control *ctl, unsigned long *epoch); extern int set_epoch_rtc(const struct hwclock_control *ctl); +#endif extern void hwclock_exit(const struct hwclock_control *ctl, int status); |