Subject: Re: ahc and raidframe questions
To: Andrew Gillham <gillhaa@ghost.whirlpool.com>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-users
Date: 06/27/1999 00:31:24
On Sun, 27 Jun 1999, Andrew Gillham wrote:

> >   #ifdef NetBSD
> >   #define srandomdev() srand ((unsigned) time (NULL))
> >   #endif
> > 
> > I'll take a look at that, too, when I have time.
> 
> On NetBSD/i386:
> cc -O2 -g   -o rawio rawio.c
> rawio.c: In function `main':
> rawio.c:305: `DIOCGDINFO' undeclared (first use in this function)
> rawio.c:305: (Each undeclared identifier is reported only once
> rawio.c:305: for each function it appears in.)
> *** Error code 1

You probably need an

#if defined(__NetBSD__)
# include <sys/ioctl.h>
#endif