]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ntpd.c:
authorSven Dietricht <dietrict@ntp.org>
Thu, 11 May 2000 22:58:43 +0000 (22:58 -0000)
committerSven Dietricht <dietrict@ntp.org>
Thu, 11 May 2000 22:58:43 +0000 (22:58 -0000)
  Move hostname buffer into service_main, so that it is local
  in the WINNT build, where main blocks on service_main.
config.h, unistd.h:
  Define AUTOKEY, MAXHOSTNAMELEN, and _finite to get compiling under WINNT
ntpd.dsp:
  Add ntp_crypt.c to ntpd makefile.
ChangeLog:
  Patch to get WINNT port running again.
winnt.htm:
  Documentation about compile failure on 4.0.99i for WINNT.

bk: 391b3b23b7Mwightj8XZdd41h_avWg

ChangeLog
html/hints/winnt.htm
ntpd/ntpd.c
ports/winnt/include/config.h
ports/winnt/include/unistd.h [new file with mode: 0644]
ports/winnt/ntpd/ntpd.dsp

index 09565c72becb4958b6761fdb3610ef1de7cc2d25..2e9c037ccc37f4632588f7837ed72ef358c6f566 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2000-05-11  Sven Dietrich  <sven_dietrich@trimble.com>
+
+       * ports/winnt/include/config.h: New defines to support AUTOKEY
+       * ports/winnt/include/unistd.h: Added another dummy placeholder.h
+       * ports/winnt/ntpd/ntpd.dsp: Added ntp_crypt.c to makefile
+       * ports/winnt/ntpd/ntpd.c: service_main needs a local hostname[]
+       * html/hints/winnt.htm: Add remark about 4.0.99i not compiling.
+       These changes got WINNT running again. No idea if the keys stuff
+       works however.
+
 2000-05-10  Harlan Stenn  <stenn@whimsy.udel.edu>
 
        * configure.in: 4.0.99i9
index a18237089ac5cd88df3ced4be436894017becf47..2b675edad440fcead57ea5457b478107b2b1f2eb 100644 (file)
 <h1>
 NTP 4.x for Windows NT</h1>
 
+<h2>
+Do not try to compile NTP-4.0.99i under WINNT, it will not work.
+Fixed NTP-4.0.99i; look for next release to be functional.
+Sven - May 11 2000
+</h2>
+
 <h2>
 Download NTP-4.0.99g for the last stable WINNT port.
 I am working on adapting the major changes starting with 99i
index 6eeb98a17ef7f51880c40f7f5bd6b997b39738e3..4843c6d0e1754f4e82e831f91a0057ed93f2cc2f 100644 (file)
@@ -524,7 +524,10 @@ service_main(
        char *cp;
        struct recvbuf *rbuflist;
        struct recvbuf *rbuf;
-
+#ifdef AUTOKEY
+       u_int n;
+       char hostname[MAXFILENAME];
+#endif /* AUTOKEY */
        if(!debug)
        {
                /* register our service control handler */
index 8f2084c28fa186e0461abd32afc244fae439849b..538f2c91e9aafc8c479fbea7a04891e988bb69fe 100644 (file)
 #endif
 # undef  OPEN_BCAST_SOCKET             /* for  ntp_io.c */                                                                                                     
 # undef  UDP_WILDCARD_DELIVERY /* for  ntp_io.c */                             /*      98/06/01  */
-# undef  DES                           /* from libntp.mak */                                                                                                                           
+# undef  DES                           /* from libntp.mak */
 # define  MD5                          /* from libntp.mak */   
 # define HAVE_RANDOM 
+#define MAXHOSTNAMELEN 64
+#define AUTOKEY
+
+#define finite _finite
 # define random      rand
 # define srandom     srand
 
diff --git a/ports/winnt/include/unistd.h b/ports/winnt/include/unistd.h
new file mode 100644 (file)
index 0000000..5e15997
--- /dev/null
@@ -0,0 +1,4 @@
+/**************************************************************
+ * Dummy Header for Unix to Windows NT portability
+ * Created for NTP package
+ **************************************************************/
index 2bc4991c137cbfe45fffa0f18fdf30ab29552fe5..0edd975fb6277000cbf6c4865f3b6a97e912961c 100644 (file)
@@ -103,6 +103,10 @@ SOURCE=..\..\..\ntpd\ntp_control.c
 # End Source File
 # Begin Source File
 
+SOURCE=..\..\..\ntpd\ntp_crypto.c
+# End Source File
+# Begin Source File
+
 SOURCE=..\..\..\ntpd\ntp_filegen.c
 # End Source File
 # Begin Source File