bk: 3d9bf475M7Kkhn_NlvpQnaaN-kYy1g
extern int errno;
#endif
-#ifdef DECL_H_ERRNO
+#if defined(DECL_H_ERRNO) && !defined(h_errno)
extern int h_errno;
#endif
# include <sys/timex.h>
#endif
+#ifndef NTP_SYSCALLS_LIBC
#ifdef NTP_SYSCALLS_STD
# define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t))
# define ntp_gettime(t) syscall(SYS_ntp_gettime, (t))
# endif
# endif /* !HAVE_ADJTIMEX */
#endif /* !NTP_SYSCALLS_STD */
+#endif /* !NTP_SYSCALLS_LIBC */
#endif /* NTP_SYSCALL_H */
#define dprintf(_x_)
#endif
+#ifdef DECL_ERRNO
extern int errno;
+#endif
/*
* display received data (avoids also detaching from tty)
* convert a wall clock time description of DCF77 to a Unix time (seconds
* since 1.1. 1970 UTC)
*/
-time_t
+static time_t
dcf_to_unixtime(
clocktime_t *clock_time,
unsigned *cvtrtc
*/
static void
tick(
- void
+ int signum
)
{
static unsigned long last_notice = 0;
* check_y2k() - internal check of Y2K logic
* (a lot of this logic lifted from ../ntpd/check_y2k.c)
*/
-int
+static int
check_y2k( void )
{
int year; /* current working year */