Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/sys/sys Only need TIMESPEC_OVERFLOW() to...



details:   https://anonhg.NetBSD.org/src/rev/8760718091b0
branches:  trunk
changeset: 372207:8760718091b0
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Oct 31 04:50:12 2022 +0000

description:
Only need TIMESPEC_OVERFLOW() to check against INT32_{MIN,MAX} on FreeBSD.

diffstat:

 external/cddl/osnet/sys/sys/time.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 90f4cad787d3 -r 8760718091b0 external/cddl/osnet/sys/sys/time.h
--- a/external/cddl/osnet/sys/sys/time.h        Mon Oct 31 00:56:33 2022 +0000
+++ b/external/cddl/osnet/sys/sys/time.h        Mon Oct 31 04:50:12 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: time.h,v 1.14 2022/09/19 22:30:19 mlelstv Exp $        */
+/*     $NetBSD: time.h,v 1.15 2022/10/31 04:50:12 simonb Exp $ */
 
 /*-
  * Copyright (c) 2007 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -50,7 +50,8 @@
 typedef longlong_t     hrtime_t;
 #endif
 
-#if defined(__i386__) || defined(__powerpc__)
+/* FreeBSD i386 and PPC use int32 for time, all else int64 */
+#if defined(__FreeBSD__) && (defined(__i386__) || defined(__powerpc__))
 #define        TIMESPEC_OVERFLOW(ts)                                           \
        ((ts)->tv_sec < INT32_MIN || (ts)->tv_sec > INT32_MAX)
 #else



Home | Main Index | Thread Index | Old Index