Which *nix ? BSD : System V

Dave Brower daveb at rtech.ARPA
Thu Feb 14 13:16:03 AEST 1985


[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	<fcntl.h>
	# 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."



More information about the Comp.unix.wizards mailing list