Question on "#include <time.h>" vs "#include <sys/time.h>"

Arthur David Olson ado at elsie.UUCP
Wed Mar 20 12:19:12 AEST 1985


UNIX systems have a file that you can include with the preprocessor directive
	#include <time.h>
4.1bsd systems also have such a file.  However, on 4.2bsd systems you include
the file with the preprocessor directive
	#include <sys/time.h>

I'd appreciate it if some wizard could fill in the blanks below:

	#include _________________
	#ifdef ___________________
	#include <time.h>
	#else
	#include <sys/time.h>
	#endif

I'd also appreciate fill-ins for these blanks:

	#include _________________
	#ifdef ___________________
	#include <time.h>
	#else
	#include <sys/time.h>
	#endif

(where, ideally, the blanks get filled in the same way).  Thanks for your help.
--
UNIX is an AT&T Bell Laboratories trademark.
Time is a Time, Incorporated trademark.
--
	UUCP: ..decvax!seismo!elsie!ado    ARPA: elsie!ado at seismo.ARPA
	DEC, VAX and Elsie are Digital Equipment and Borden trademarks



More information about the Comp.unix.wizards mailing list