Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux Define NSEC_PER_SEC and ...
details: https://anonhg.NetBSD.org/src/rev/f325c3ff42e1
branches: trunk
changeset: 1027959:f325c3ff42e1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:21:45 2021 +0000
description:
Define NSEC_PER_SEC and side-load <linux/math64.h>.
diffstat:
sys/external/bsd/drm2/include/linux/time.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r cc3a43f701cd -r f325c3ff42e1 sys/external/bsd/drm2/include/linux/time.h
--- a/sys/external/bsd/drm2/include/linux/time.h Sun Dec 19 01:21:37 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/time.h Sun Dec 19 01:21:45 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: time.h,v 1.6 2021/12/19 01:16:28 riastradh Exp $ */
+/* $NetBSD: time.h,v 1.7 2021/12/19 01:21:45 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,9 +34,12 @@
#include <sys/time.h>
+#include <linux/math64.h>
+
#define timespec64 timespec /* take that, 2038 */
#define NSEC_PER_MSEC 1000000L
+#define NSEC_PER_SEC 1000000000L
/*
* XXX get_seconds as implemented by Linux is a Y2038 bug waiting to
Home |
Main Index |
Thread Index |
Old Index