From 05261ccb43c0f5326488547717d89e77924cdcf0 Mon Sep 17 00:00:00 2001 From: drochner Date: Sat, 22 Jan 2000 16:35:25 +0000 Subject: [PATCH] include "rnd.h" explicitely since the size of sd_softc depends on it (sd_scsi.c and sd_atapi.c missed it, leading to random memory corruption) --- sys/dev/scsipi/sdvar.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/dev/scsipi/sdvar.h b/sys/dev/scsipi/sdvar.h index efe56acd35d4..0f365bdb0506 100644 --- a/sys/dev/scsipi/sdvar.h +++ b/sys/dev/scsipi/sdvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: sdvar.h,v 1.10 2000/01/21 23:40:00 thorpej Exp $ */ +/* $NetBSD: sdvar.h,v 1.11 2000/01/22 16:35:25 drochner Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -53,6 +53,11 @@ * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 */ +#include "rnd.h" +#if NRND > 0 +#include +#endif + #define SDRETRIES 4 struct sd_ops;