summaryrefslogtreecommitdiffstats
path: root/include/pathnames.h
diff options
context:
space:
mode:
authorKarel Zak2014-06-19 10:18:46 +0200
committerKarel Zak2014-06-19 10:30:56 +0200
commit2ad2196349e25d3af4beea2bfd444f85b987f9da (patch)
tree117bead56a2a175cfa3a5df342129264fedd47c1 /include/pathnames.h
parentbuild-sys: add libsmartcols to ko-release-gen script (diff)
downloadkernel-qcow2-util-linux-2ad2196349e25d3af4beea2bfd444f85b987f9da.tar.gz
kernel-qcow2-util-linux-2ad2196349e25d3af4beea2bfd444f85b987f9da.tar.xz
kernel-qcow2-util-linux-2ad2196349e25d3af4beea2bfd444f85b987f9da.zip
build-sys: support ./configure ADJTIME_PATH=
.. to override the default /etc/adjtime path. Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r--include/pathnames.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index b6efdb7dc..1cc4e15e6 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -150,7 +150,11 @@
#define _PATH_DEV_BYPARTUUID "/dev/disk/by-partuuid"
/* hwclock paths */
+#ifdef CONFIG_ADJTIME_PATH
+# define _PATH_ADJTIME CONFIG_ADJTIME_PATH
+#else
# define _PATH_ADJTIME "/etc/adjtime"
+#endif
#define _PATH_LASTDATE "/var/lib/lastdate"
#ifdef __ia64__