diff options
Diffstat (limited to 'ntpd/refclock_dumbclock.c')
-rw-r--r-- | ntpd/refclock_dumbclock.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ntpd/refclock_dumbclock.c b/ntpd/refclock_dumbclock.c index 2788649ac3a7..10ff2cfe893b 100644 --- a/ntpd/refclock_dumbclock.c +++ b/ntpd/refclock_dumbclock.c @@ -12,11 +12,6 @@ #include <config.h> #endif -#if defined(SYS_WINNT) -#undef close -#define close closesocket -#endif - #if defined(REFCLOCK) && defined(CLOCK_DUMBCLOCK) #include "ntpd.h" @@ -28,6 +23,12 @@ #include <stdio.h> #include <ctype.h> +#ifdef SYS_WINNT +extern int async_write(int, const void *, unsigned int); +#undef write +#define write(fd, data, octets) async_write(fd, data, octets) +#endif + /* * This driver supports a generic dumb clock that only outputs hh:mm:ss, * in local time, no less. |