Module Name: src
Committed By: jakllsch
Date: Fri Dec 18 00:40:24 UTC 2009
Modified Files:
src/sys/dev: ldvar.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/ldvar.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/dev/ldvar.h
diff -u src/sys/dev/ldvar.h:1.16 src/sys/dev/ldvar.h:1.17
--- src/sys/dev/ldvar.h:1.16 Thu May 7 08:03:23 2009
+++ src/sys/dev/ldvar.h Fri Dec 18 00:40:24 2009
@@ -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;