Subject: Re: unix define
To: I presume I need no introduction. <email@example.com>
From: Johan Danielsson <firstname.lastname@example.org>
Date: 06/16/1998 12:44:16
email@example.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
If you don't do something like this, you end up with code that has
more ifdefs that actual code.