]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
rtcwake: fix preprocessor redefinition
authorSami Kerola <kerolasa@iki.fi>
Sat, 10 Jan 2015 18:45:22 +0000 (18:45 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 29 Jun 2015 11:39:37 +0000 (13:39 +0200)
The RTC_AF is expected to be part of linux/rtc.h file.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/rtcwake.c

index 0caab24da9604956591e2c09e2485d002ab5d1e4..2fcb5ffa7172f149d214db54f91ded3e842f2024 100644 (file)
 #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 ADJTIME_ZONE_STRLEN    8