gabriel rosenkoetter on Thu, 20 Jun 2002 15:08:41 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] OT: C question: anyone know what a SunOS box defines?


On Thu, Jun 20, 2002 at 02:55:44PM -0400, Kyle R . Burton wrote:
> I'm using:
> 
>   #if defined __OpenBSD__ || defined __FreeBSD__ || defined __NetBSD__
> 
> For some of the *BSD/Linux differences, but I don't know what I should be
> using for the SunOS box...anyone know what the C compiler on this thing
> will define so the code can #if/#else/#endif the code in question?

I *think* it's __SunOS__. (Pretty easy to check.)

> Or should I just #include ioctl.h to get the SIOCGI* defines?

Guh. That strikes me as clumsy. (But I guess I couldn't be sure
without a bit more detail about what you plan to do with those
#defines after you've #included them...)

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpkGumGBG50O.pgp
Description: PGP signature