diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-12-19 01:21:45 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-12-19 01:21:45 +0000 |
| commit | d97ed050a140bcb3555ed00f112eef021bf3fcb2 (patch) | |
| tree | af66eaa3199965dbbcc94dd6ac6914f26d5f7507 /sys/external/bsd/drm2/include/linux | |
| parent | 35326838a42341dea3aa011607eba4d99e3b733d (diff) | |
Define NSEC_PER_SEC and side-load <linux/math64.h>.
Diffstat (limited to 'sys/external/bsd/drm2/include/linux')
| -rw-r--r-- | sys/external/bsd/drm2/include/linux/time.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/external/bsd/drm2/include/linux/time.h b/sys/external/bsd/drm2/include/linux/time.h index 17b2da3adc6..8d7ccb60ad9 100644 --- a/sys/external/bsd/drm2/include/linux/time.h +++ b/sys/external/bsd/drm2/include/linux/time.h @@ -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 |
