The parse-date.y is used only for hwclock, let's keep it together.
Note that the file (originally from gnulib) has GPLv3 license, so it's
better to make it obvious that we use it really only for hwclock (also
GPL).
Signed-off-by: Karel Zak <kzak@redhat.com>
extern time_t timegm(struct tm *tm);
#endif
-int parse_date(struct timespec *, char const *, struct timespec const *);
-
#endif /* UTIL_LINUX_TIME_UTIL_H */
lib/mbsedit.c\
lib/md5.c \
lib/pager.c \
- lib/parse-date.y \
lib/pwdutils.c \
lib/randutils.c \
lib/setproctitle.c \
PATHFILES += sys-utils/hwclock.8
hwclock_SOURCES = \
sys-utils/hwclock.c \
- sys-utils/hwclock.h
+ sys-utils/hwclock.h \
+ sys-utils/hwclock-parse-date.y
hwclock_LDADD = $(LDADD) libcommon.la -lm
if USE_HWCLOCK_CMOS
hwclock_SOURCES += \
#include "c.h"
#include "timeutils.h"
+#include "hwclock.h"
/**
* There's no need to extend the stack, so there's no need to involve
extern void __attribute__((__noreturn__))
hwclock_exit(const struct hwclock_control *ctl, int status);
+extern int parse_date(struct timespec *, char const *, struct timespec const *);
+
#endif /* HWCLOCK_CLOCK_H */