Subject: Re: LiS (Linux Streams) for NetBSD
To: Steven Grunza <steven_grunza@ieee.org>
From: Laine Stump <lainestump@rcn.com>
List: current-users
Date: 04/03/2000 15:06:23
At 01:37 PM 4/3/00 -0400, Steven Grunza wrote:
>I'm looking into porting/adapting LiS for NetBSD. What is the proper way
>to detect that NetBSD is the current operating system? Some of the header
>files included with LiS re-define constants in our /usr/include/ directory.
> If there is a string always defined by cc during compiles on NetBSD then
>something like the following would work:
>
>#ifndef NETBSD
>
>//original #defines and #includes, etc
>
>#endif // #ifndef NETBSD
There may be a better way to deal with it, but __NetBSD__ is always defined
if you're compiling on NetBSD, and I've used that in the past.
>
>
>
>Any ideas? If possible, I would like to figure out the modifications
>necessary and submit them to the owner/maintainer of LiS. Modifications of
>the kind shown above would seem to be fairly easy for the LiS maintainer.
>
>Steven Grunza
>
>PS
> I really don't want to port STREAMS to NetBSD. I want to use a PCI card
>that requires STREAMS in the device driver....
>
>