aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-17 20:53:43 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-17 20:53:43 +0100
commit251e08ffa626d4b7c7e5f626aee7067b86b2ceba (patch)
tree8309b7b739737d41e564fa9c969871eb9ad46613 /include
parenta4c5cb2335dc3ef2fd21560c2205abf1e484e82a (diff)
downloadbusybox-w32-251e08ffa626d4b7c7e5f626aee7067b86b2ceba.tar.gz
busybox-w32-251e08ffa626d4b7c7e5f626aee7067b86b2ceba.tar.bz2
busybox-w32-251e08ffa626d4b7c7e5f626aee7067b86b2ceba.zip
move ADJTIME_PATH define to header files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/rtc_.h6
-rw-r--r--include/usage.src.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/include/rtc_.h b/include/rtc_.h
index 750fc20ec..24ff5363f 100644
--- a/include/rtc_.h
+++ b/include/rtc_.h
@@ -11,6 +11,12 @@
11 11
12PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN 12PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
13 13
14#if ENABLE_FEATURE_HWCLOCK_ADJTIME_FHS
15# define ADJTIME_PATH "/var/lib/hwclock/adjtime"
16#else
17# define ADJTIME_PATH "/etc/adjtime"
18#endif
19
14int rtc_adjtime_is_utc(void) FAST_FUNC; 20int rtc_adjtime_is_utc(void) FAST_FUNC;
15int rtc_xopen(const char **default_rtc, int flags) FAST_FUNC; 21int rtc_xopen(const char **default_rtc, int flags) FAST_FUNC;
16void rtc_read_tm(struct tm *ptm, int fd) FAST_FUNC; 22void rtc_read_tm(struct tm *ptm, int fd) FAST_FUNC;
diff --git a/include/usage.src.h b/include/usage.src.h
index d22efd3ba..1ac252d1b 100644
--- a/include/usage.src.h
+++ b/include/usage.src.h
@@ -25,6 +25,12 @@
25 " (default "CONFIG_FEATURE_DEFAULT_PASSWD_ALGO")" 25 " (default "CONFIG_FEATURE_DEFAULT_PASSWD_ALGO")"
26#endif 26#endif
27 27
28#if ENABLE_FEATURE_HWCLOCK_ADJTIME_FHS
29# define ADJTIME_PATH "/var/lib/hwclock/adjtime"
30#else
31# define ADJTIME_PATH "/etc/adjtime"
32#endif
33
28INSERT 34INSERT
29 35
30#define busybox_notes_usage \ 36#define busybox_notes_usage \