Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Use "rnd.h" and <sys/rnd.h> to ensure that struct ld...
details: https://anonhg.NetBSD.org/src/rev/afbe07c8c629
branches: trunk
changeset: 750126:afbe07c8c629
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Fri Dec 18 00:40:24 2009 +0000
description:
Use "rnd.h" and <sys/rnd.h> to ensure that struct ld_softc
is always of consistent layout. Should prevent another
someone from spending a few hours trying to figure out why
their code crashes because they didn't realize they needed
to have "rnd.h" included already.
diffstat:
sys/dev/ldvar.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 09db3b57fc97 -r afbe07c8c629 sys/dev/ldvar.h
--- a/sys/dev/ldvar.h Thu Dec 17 23:53:24 2009 +0000
+++ b/sys/dev/ldvar.h Fri Dec 18 00:40:24 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldvar.h,v 1.16 2009/05/07 08:03:23 cegger Exp $ */
+/* $NetBSD: ldvar.h,v 1.17 2009/12/18 00:40:24 jakllsch Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -32,8 +32,13 @@
#ifndef _DEV_LDVAR_H_
#define _DEV_LDVAR_H_
+#include "rnd.h"
+
#include <sys/mutex.h>
#include <sys/device.h> /* for device_t */
+#if NRND > 0
+#include <sys/rnd.h>
+#endif
struct ld_softc {
device_t sc_dv;
Home |
Main Index |
Thread Index |
Old Index