Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/sys - Remove more extraneous include...
details: https://anonhg.NetBSD.org/src/rev/375957e7d4fd
branches: trunk
changeset: 323164:375957e7d4fd
user: christos <christos%NetBSD.org@localhost>
date: Sat Jun 02 18:46:34 2018 +0000
description:
- Remove more extraneous includes to avoid circular dependencies with the
real header files.
- Add <sys/errno.h> to <sys/systm.h> to avoid changing the source, but
it should really belong to the source.
diffstat:
external/cddl/osnet/sys/sys/proc.h | 3 +--
external/cddl/osnet/sys/sys/systm.h | 7 ++-----
external/cddl/osnet/sys/sys/time.h | 3 +--
3 files changed, 4 insertions(+), 9 deletions(-)
diffs (64 lines):
diff -r 46111798622f -r 375957e7d4fd external/cddl/osnet/sys/sys/proc.h
--- a/external/cddl/osnet/sys/sys/proc.h Sat Jun 02 18:11:26 2018 +0000
+++ b/external/cddl/osnet/sys/sys/proc.h Sat Jun 02 18:46:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: proc.h,v 1.6 2018/05/28 21:05:10 chs Exp $ */
+/* $NetBSD: proc.h,v 1.7 2018/06/02 18:46:34 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -60,7 +60,6 @@
#ifndef _OPENSOLARIS_SYS_PROC_H_
#define _OPENSOLARIS_SYS_PROC_H_
-#include <sys/param.h>
#include_next <sys/proc.h>
#include <sys/stdint.h>
diff -r 46111798622f -r 375957e7d4fd external/cddl/osnet/sys/sys/systm.h
--- a/external/cddl/osnet/sys/sys/systm.h Sat Jun 02 18:11:26 2018 +0000
+++ b/external/cddl/osnet/sys/sys/systm.h Sat Jun 02 18:46:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systm.h,v 1.5 2018/05/28 21:05:10 chs Exp $ */
+/* $NetBSD: systm.h,v 1.6 2018/06/02 18:46:34 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -57,8 +57,6 @@
* $FreeBSD: head/sys/cddl/compat/opensolaris/sys/systm.h 296510 2016-03-08 17:27:13Z mav $
*/
-#include <sys/proc.h>
-
#ifndef _OPENSOLARIS_SYS_SYSTM_H_
#define _OPENSOLARIS_SYS_SYSTM_H_
@@ -67,10 +65,9 @@
#include_next <sys/systm.h>
#endif
-#include <sys/param.h>
-
#ifdef _KERNEL
#include <sys/string.h>
+#include <sys/errno.h>
#define PAGESIZE PAGE_SIZE
#define PAGEOFFSET (PAGESIZE - 1)
diff -r 46111798622f -r 375957e7d4fd external/cddl/osnet/sys/sys/time.h
--- a/external/cddl/osnet/sys/sys/time.h Sat Jun 02 18:11:26 2018 +0000
+++ b/external/cddl/osnet/sys/sys/time.h Sat Jun 02 18:46:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: time.h,v 1.10 2018/06/01 00:56:19 kre Exp $ */
+/* $NetBSD: time.h,v 1.11 2018/06/02 18:46:34 christos Exp $ */
/*-
* Copyright (c) 2007 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -62,7 +62,6 @@
#define NSEC_TO_TICK(nsec) ((nsec) / (NANOSEC / hz))
#ifdef _KERNEL
-#include <sys/systm.h>
static __inline hrtime_t
gethrtime(void) {
Home |
Main Index |
Thread Index |
Old Index