Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rtech.ARPA Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!ihnp4!zehntel!hplabs!intelca!qantel!dual!unisoft!mtxinu!rtech!daveb From: daveb@rtech.ARPA (Dave Brower) Newsgroups: net.unix-wizards Subject: Which *nix ? BSD : System V Message-ID: <147@rtech.ARPA> Date: Wed, 13-Feb-85 22:16:03 EST Article-I.D.: rtech.147 Posted: Wed Feb 13 22:16:03 1985 Date-Received: Mon, 18-Feb-85 05:33:01 EST Distribution: net Organization: Relational Technology, Berkeley CA Lines: 22 [munch] If you need to know at compile time whether you're on a Berklix or a System V system, this might help. It seems to work on all of our systems, including the Pyramid split universe wonder: # include # ifdef FNDELAY # define BSD # else # define SYS5 # endif This assumes that FNDELAY is not defined in the System V fcntl.h, and is in the BSD. Can anyone think of a case where this is not true, or suggest a more convenient/valid alternative? -dB -- ---------------- {ucbvax, decvax}!mtxinu!rtech!daveb "The closer you look, the worse it gets."