Source-Changes-HG archive

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

[src/netbsd-7-1]: src/sys/compat/sys Additionally pull up the following for t...



details:   https://anonhg.NetBSD.org/src/rev/be5f4bd7cec7
branches:  netbsd-7-1
changeset: 447227:be5f4bd7cec7
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jan 03 11:15:01 2019 +0000

description:
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.

diffstat:

 sys/compat/sys/time_types.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r e549440f4f39 -r be5f4bd7cec7 sys/compat/sys/time_types.h
--- a/sys/compat/sys/time_types.h       Wed Jan 02 15:31:18 2019 +0000
+++ b/sys/compat/sys/time_types.h       Thu Jan 03 11:15:01 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: time_types.h,v 1.1 2009/11/05 16:59:01 pooka Exp $     */
+/*     $NetBSD: time_types.h,v 1.1.52.1 2019/01/03 11:15:01 martin Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -34,6 +34,13 @@
 #ifndef _COMPAT_SYS_TIME_TYPES_H_
 #define        _COMPAT_SYS_TIME_TYPES_H_
 
+#ifdef _KERNEL
+#include <lib/libkern/libkern.h>
+#else
+#include <stddef.h>
+#include <string.h>
+#endif
+
 /*
  * Structure returned by gettimeofday(2) system call,
  * and used in other calls.



Home | Main Index | Thread Index | Old Index