The RTC_AF is expected to be part of linux/rtc.h file. Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- sys-utils/rtcwake.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c index 4aa4fd3..c3e0eb6 100644 --- a/sys-utils/rtcwake.c +++ b/sys-utils/rtcwake.c @@ -43,10 +43,9 @@ #include "closestream.h" #include "timeutils.h" -/* constants from legacy PC/AT hardware */ -#define RTC_PF 0x40 -#define RTC_AF 0x20 -#define RTC_UF 0x10 +#ifndef RTC_AF +# define RTC_AF 0x20 /* Alarm interrupt */ +#endif #define RTC_PATH "/sys/class/rtc/%s/device/power/wakeup" #define SYS_POWER_STATE_PATH "/sys/power/state" -- 2.3.0 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html