Subject: Re: unix define
To: I presume I need no introduction. <greywolf@starwolf.starwolf.com>
From: Johan Danielsson <joda@pdc.kth.se>
List: current-users
Date: 06/16/1998 12:44:16
greywolf@starwolf.starwolf.com (I presume I need no introduction.) writes:

> There are certain fundamental things that can be asserted such as
> the behaviours of certain system calls,

Then test for that behavior.

> the presence of ioctl(),

Test for the presence of ioctl().

> the semantics of open()

Test for the semantics of open().

If you do that, you get code that will work on machines that does not
define `unix', or that are infact not `unix', but still has the
required features.

If you don't do something like this, you end up with code that has
more ifdefs that actual code.

/Johan