]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
config.h:
authorSven Dietricht <dietrict@ntp.org>
Tue, 22 Feb 2000 07:16:38 +0000 (07:16 -0000)
committerSven Dietricht <dietrict@ntp.org>
Tue, 22 Feb 2000 07:16:38 +0000 (07:16 -0000)
  Define MD5 and associated random functions.
SetSystemTime.c:
  Including ntp_stdlib.h fixes a warning.
  Corrected constant declaration.
  Fixes from Carl Byington

bk: 38b237d64r0bw5YsYcRLuinsw3aI0A

ports/winnt/include/config.h
ports/winnt/libntp/SetSystemTime.c

index 4421a5d5915035c4758e76a9ea423a4f16ece401..8f2084c28fa186e0461abd32afc244fae439849b 100644 (file)
 # 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 */
index 6611c6233d19a8602d4596d587ec139444bb5760..e3e11ee1a76f6d951fd6fb49a93fc0b97a92af62 100644 (file)
@@ -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(