Thu Jan 3 11:15:01 2019 UTC ()
Additionally pull up the following for ticket #1668:

	sys/compat/sys/time_types.h	1.3

include libkern.h or string.h & stddef.h, to get the offsetof()
and memset() definitions.


(martin)
diff -r1.1 -r1.1.52.1 src/sys/compat/sys/time_types.h

cvs diff -r1.1 -r1.1.52.1 src/sys/compat/sys/time_types.h (expand / switch to unified diff)

--- src/sys/compat/sys/time_types.h 2009/11/05 16:59:01 1.1
+++ src/sys/compat/sys/time_types.h 2019/01/03 11:15:01 1.1.52.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: time_types.h,v 1.1 2009/11/05 16:59:01 pooka Exp $ */ 1/* $NetBSD: time_types.h,v 1.1.52.1 2019/01/03 11:15:01 martin Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1982, 1986, 1993 4 * Copyright (c) 1982, 1986, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -24,26 +24,33 @@ @@ -24,26 +24,33 @@
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 * 30 *
31 * @(#)time.h 8.5 (Berkeley) 5/4/95 31 * @(#)time.h 8.5 (Berkeley) 5/4/95
32 */ 32 */
33 33
34#ifndef _COMPAT_SYS_TIME_TYPES_H_ 34#ifndef _COMPAT_SYS_TIME_TYPES_H_
35#define _COMPAT_SYS_TIME_TYPES_H_ 35#define _COMPAT_SYS_TIME_TYPES_H_
36 36
 37#ifdef _KERNEL
 38#include <lib/libkern/libkern.h>
 39#else
 40#include <stddef.h>
 41#include <string.h>
 42#endif
 43
37/* 44/*
38 * Structure returned by gettimeofday(2) system call, 45 * Structure returned by gettimeofday(2) system call,
39 * and used in other calls. 46 * and used in other calls.
40 */ 47 */
41struct timeval50 { 48struct timeval50 {
42 long tv_sec; /* seconds */ 49 long tv_sec; /* seconds */
43 long tv_usec; /* and microseconds */ 50 long tv_usec; /* and microseconds */
44}; 51};
45 52
46struct itimerval50 { 53struct itimerval50 {
47 struct timeval50 it_interval; /* timer interval */ 54 struct timeval50 it_interval; /* timer interval */
48 struct timeval50 it_value; /* current value */ 55 struct timeval50 it_value; /* current value */
49}; 56};