diff options
Diffstat (limited to 'libntp/buftvtots.c')
-rw-r--r-- | libntp/buftvtots.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libntp/buftvtots.c b/libntp/buftvtots.c index bfceb35da219..d6d9300f1241 100644 --- a/libntp/buftvtots.c +++ b/libntp/buftvtots.c @@ -11,6 +11,7 @@ #include "ntp_string.h" #include "ntp_unixtime.h" +#ifndef SYS_WINNT int buftvtots( const char *bufp, @@ -33,3 +34,20 @@ buftvtots( TVUTOTSF(tv.tv_usec, ts->l_uf); return 1; } +#else /* SYS_WINNT */ +/* + * Windows doesn't have the tty_clock line discipline, so + * don't look for a timestamp where there is none. + */ +int +buftvtots( + const char *bufp, + l_fp *ts + ) +{ + UNUSED_ARG(bufp); + UNUSED_ARG(ts); + + return 0; +} +#endif /* SYS_WINNT */ |