Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/sys include libkern.h or string.h & stddef.h, to ...
details: https://anonhg.NetBSD.org/src/rev/072d1f630b98
branches: trunk
changeset: 362539:072d1f630b98
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Jun 15 07:33:27 2018 +0000
description:
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 1238250674f4 -r 072d1f630b98 sys/compat/sys/time_types.h
--- a/sys/compat/sys/time_types.h Fri Jun 15 01:37:40 2018 +0000
+++ b/sys/compat/sys/time_types.h Fri Jun 15 07:33:27 2018 +0000
@@ -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.
Home |
Main Index |
Thread Index |
Old Index