]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug 880 bug fixes for Windows build
authorDanny Mayer <mayer@ntp.org>
Wed, 15 Aug 2007 02:55:12 +0000 (22:55 -0400)
committerDanny Mayer <mayer@ntp.org>
Wed, 15 Aug 2007 02:55:12 +0000 (22:55 -0400)
bk: 46c26b10jOXSoIMxe8XIzF0_oXV0cA

ntpd/ntp_data_structures.c
ports/winnt/ntpd/nt_clockstuff.c

index a6539f32e6e84f539a328a25af327b89627ec5eb..05c257cd2f6424bebd9745cd7dca0fe64880c259 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <stdlib.h>    /* Needed for malloc */
 #include "ntp_data_structures.h"
+#include "ntp_stdlib.h"
 
 /* Priority Queue
  * --------------
index bbb4c2036b0b8ab40c577241dfa2f1b7cdfcd06c..f5f393b62482a02ae6aa8883757154c6398b5ace 100644 (file)
@@ -165,7 +165,7 @@ adj_systime(
 
   /* If a leap second is pending then determine the UTC time stamp 
         * of when the insertion must take place */
-       if (leap_next & LEAP_ADDSECOND)  
+       if (leap_sec > 0)  
        {
                if ( ls_ft.ull == 0 )  /* time stamp has not yet been computed */
                {