From: Sven Dietricht Date: Tue, 22 Feb 2000 07:16:38 +0000 (-0000) Subject: config.h: X-Git-Tag: NTP_4_0_99_G~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f869c431fb6dfc313b9c8545292aa0844e543cd2;p=thirdparty%2Fntp.git config.h: Define MD5 and associated random functions. SetSystemTime.c: Including ntp_stdlib.h fixes a warning. Corrected constant declaration. Fixes from Carl Byington bk: 38b237d64r0bw5YsYcRLuinsw3aI0A --- diff --git a/ports/winnt/include/config.h b/ports/winnt/include/config.h index 4421a5d59..8f2084c28 100644 --- a/ports/winnt/include/config.h +++ b/ports/winnt/include/config.h @@ -19,7 +19,10 @@ # undef OPEN_BCAST_SOCKET /* for ntp_io.c */ # undef UDP_WILDCARD_DELIVERY /* for ntp_io.c */ /* 98/06/01 */ # undef DES /* from libntp.mak */ -//# define MD5 /* from libntp.mak */ +# define MD5 /* from libntp.mak */ +# define HAVE_RANDOM +# define random rand +# define srandom srand # define MCAST /* Enable Multicast Support */ # define REFCLOCK /* from ntpd.mak */ diff --git a/ports/winnt/libntp/SetSystemTime.c b/ports/winnt/libntp/SetSystemTime.c index 6611c6233..e3e11ee1a 100644 --- a/ports/winnt/libntp/SetSystemTime.c +++ b/ports/winnt/libntp/SetSystemTime.c @@ -1,7 +1,8 @@ #include "clockstuff.h" +#include "ntp_stdlib.h" -char * set_tod_using = "SetSystemTime"; +const char * set_tod_using = "SetSystemTime"; int ntp_set_tod(