Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 01:21:45 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/include/linux: time.h

Log Message:
Define NSEC_PER_SEC and side-load <linux/math64.h>.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/external/bsd/drm2/include/linux/time.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/time.h
diff -u src/sys/external/bsd/drm2/include/linux/time.h:1.6 src/sys/external/bsd/drm2/include/linux/time.h:1.7
--- src/sys/external/bsd/drm2/include/linux/time.h:1.6	Sun Dec 19 01:16:28 2021
+++ src/sys/external/bsd/drm2/include/linux/time.h	Sun Dec 19 01:21:45 2021
@@ -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

Reply via email to