Which *nix ? BSD : System V

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Wed Feb 20 13:18:39 AEST 1985


> 	# include	<fcntl.h>
> 	# ifdef		FNDELAY
> 	# define	BSD
> 	# else
> 	# define	SYS5
> 	# endif

This should work on 4.2BSD and all UNIX System III and V releases.
It would be a compile-time error on older UNIXes.

I still prefer writing code for ONE environment rather than having
to juggle two at the same time.



More information about the Comp.unix.wizards mailing list