Module Name: src
Committed By: martin
Date: Thu Jan 3 09:00:01 UTC 2019
Modified Files:
src/sys/compat/sys [netbsd-8]: time_types.h
Log Message:
Additionally pull up the following for ticket #1151:
sys/compat/sys/time_types.h 1.3
include libkern.h or string.h & stddef.h, to get the offsetof()
and memset() definitions.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.58.1 src/sys/compat/sys/time_types.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/compat/sys/time_types.h
diff -u src/sys/compat/sys/time_types.h:1.1 src/sys/compat/sys/time_types.h:1.1.58.1
--- src/sys/compat/sys/time_types.h:1.1 Thu Nov 5 16:59:01 2009
+++ src/sys/compat/sys/time_types.h Thu Jan 3 09:00:01 2019
@@ -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.58.1 2019/01/03 09:00: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.