Sat Jan 22 09:40:51 2011 UTC ()
move <sys/device_if.h> outside of _KERNEL since the bulk of the previous
change depends upon "device_t" being defined.

fixes sparc/stand build.


(mrg)
diff -r1.246 -r1.247 src/sys/sys/systm.h

cvs diff -r1.246 -r1.247 src/sys/sys/systm.h (expand / switch to unified diff)

--- src/sys/sys/systm.h 2011/01/21 17:46:19 1.246
+++ src/sys/sys/systm.h 2011/01/22 09:40:50 1.247
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: systm.h,v 1.246 2011/01/21 17:46:19 dyoung Exp $ */ 1/* $NetBSD: systm.h,v 1.247 2011/01/22 09:40:50 mrg Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1982, 1988, 1991, 1993 4 * Copyright (c) 1982, 1988, 1991, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc. 6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed 7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph 8 * to the University of California by American Telephone and Telegraph
9 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 9 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
10 * the permission of UNIX System Laboratories, Inc. 10 * the permission of UNIX System Laboratories, Inc.
11 * 11 *
12 * Redistribution and use in source and binary forms, with or without 12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions 13 * modification, are permitted provided that the following conditions
14 * are met: 14 * are met:
@@ -38,29 +38,30 @@ @@ -38,29 +38,30 @@
38 38
39#ifndef _SYS_SYSTM_H_ 39#ifndef _SYS_SYSTM_H_
40#define _SYS_SYSTM_H_ 40#define _SYS_SYSTM_H_
41 41
42#if defined(_KERNEL_OPT) 42#if defined(_KERNEL_OPT)
43#include "opt_ddb.h" 43#include "opt_ddb.h"
44#include "opt_multiprocessor.h" 44#include "opt_multiprocessor.h"
45#endif 45#endif
46 46
47#include <machine/endian.h> 47#include <machine/endian.h>
48 48
49#ifdef _KERNEL 49#ifdef _KERNEL
50#include <sys/types.h> 50#include <sys/types.h>
51#include <sys/device_if.h> 
52#endif 51#endif
53 52
 53#include <sys/device_if.h>
 54
54struct clockframe; 55struct clockframe;
55struct lwp; 56struct lwp;
56struct proc; 57struct proc;
57struct timeval; 58struct timeval;
58struct tty; 59struct tty;
59struct uio; 60struct uio;
60struct vnode; 61struct vnode;
61struct vmspace; 62struct vmspace;
62struct vm_map; 63struct vm_map;
63 64
64extern const char *panicstr; /* panic message */ 65extern const char *panicstr; /* panic message */
65extern int doing_shutdown; /* shutting down */ 66extern int doing_shutdown; /* shutting down */
66 67