Subject: Re: ahc and raidframe questions
To: Frederick Bruckman <fb@enteract.com>
From: Greg Lehey <grog@lemis.com>
List: netbsd-users
Date: 06/27/1999 17:42:04
On Sunday, 27 June 1999 at 0:31:24 -0500, Frederick Bruckman wrote:
> 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
Hmm. This used to compile. You may find that the whole section which
uses DIOCGDINFO needs to go; it's the last of a number of ways to
guess the file size. You can just #if 0 it out if you have trouble.
Let me know how it goes.
Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key