Module Name:    src
Committed By:   mrg
Date:           Fri Jun 15 07:33:27 UTC 2018

Modified Files:
        src/sys/compat/sys: time_types.h

Log Message:
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.2 -r1.3 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.2 src/sys/compat/sys/time_types.h:1.3
--- src/sys/compat/sys/time_types.h:1.2	Thu Jun 14 10:30:55 2018
+++ src/sys/compat/sys/time_types.h	Fri Jun 15 07:33:27 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: time_types.h,v 1.2 2018/06/14 10:30:55 uwe Exp $	*/
+/*	$NetBSD: time_types.h,v 1.3 2018/06/15 07:33:27 mrg 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.

Reply via email to