[ntp:bk-ntp-dev-send] BitKeeper diffs

stenn at whimsy.udel.edu stenn at whimsy.udel.edu
Wed Jul 17 09:13:15 UTC 2013


#### ChangeSet ####
2013-07-17 05:11:31-04:00, stenn at pogo.udel.edu
  [Bug 2375] AIX 7 doesn't like a libevent validation check

==== ChangeLog ====
2013-07-17 05:11:24-04:00, stenn at pogo.udel.edu +1 -0
  [Bug 2375] AIX 7 doesn't like a libevent validation check

--- 1.1306/ChangeLog	2013-07-17 03:34:32 -04:00
+++ 1.1307/ChangeLog	2013-07-17 05:11:24 -04:00
@@ -1,4 +1,5 @@
 * [Bug 1466] Oncore should set FLAG_PPS.
+* [Bug 2375] AIX 7 doesn't like a libevent validation check.
 (4.2.7p371) 2013/07/07 Released by Harlan Stenn <stenn at ntp.org>
 * CID 1042586: Check the return value of clock_gettime() in worker_sleep().
 * Upgrade to libopts-39.0.14 from 5.17.5pre10.

==== sntp/libevent/evutil_time.c ====
2013-07-17 05:11:24-04:00, stenn at pogo.udel.edu +0 -10
  [Bug 2375] AIX 7 doesn't like a libevent validation check

--- 1.2/sntp/libevent/evutil_time.c	2013-03-15 02:20:31 -04:00
+++ 1.3/sntp/libevent/evutil_time.c	2013-07-17 05:11:24 -04:00
@@ -184,12 +184,6 @@ evutil_configure_monotonic_time_(struct 
 	struct timespec	ts;
 
 #ifdef CLOCK_MONOTONIC_COARSE
-#if CLOCK_MONOTONIC_COARSE < 0
-	/* Technically speaking, nothing keeps CLOCK_* from being negative (as
-	 * far as I know). This check and the one below make sure that it's
-	 * safe for us to use -1 as an "unset" value. */
-#error "I didn't expect CLOCK_MONOTONIC_COARSE to be < 0"
-#endif
 	if (! precise && ! fallback) {
 		if (clock_gettime(CLOCK_MONOTONIC_COARSE, &ts) == 0) {
 			base->monotonic_clock = CLOCK_MONOTONIC_COARSE;
@@ -201,10 +195,6 @@ evutil_configure_monotonic_time_(struct 
 		base->monotonic_clock = CLOCK_MONOTONIC;
 		return 0;
 	}
-
-#if CLOCK_MONOTONIC < 0
-#error "I didn't expect CLOCK_MONOTONIC to be < 0"
-#endif
 
 	base->monotonic_clock = -1;
 	return 0;


More information about the bk-ntp-dev-send mailing list