include <sys/time.h> on 4.2 systems

This commit is contained in:
ceriel 1987-07-17 09:38:18 +00:00
parent e04230a126
commit e0f737c293
4 changed files with 16 additions and 0 deletions

View file

@ -1,5 +1,9 @@
/* $Header$ */
#ifdef __BSD4_2
#include <sys/time.h>
#else
#include <time.h>
#endif
#define DATE_STR "??? ??? ?? ??:??:?? ????\n"

View file

@ -1,5 +1,9 @@
/* $Header$ */
#ifdef __BSD_2
#include <sys/time.h>
#else
#include <time.h>
#endif
extern struct tm *localtime();
extern char *asctime();

View file

@ -1,5 +1,9 @@
/* $Header$ */
#ifdef __BSD4_2
#include <sys/time.h>
#else
#include <time.h>
#endif
static int monthsize[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };

View file

@ -1,5 +1,9 @@
/* $Header$ */
#ifdef __BSD4_2
#include <sys/time.h>
#else
#include <time.h>
#endif
#define YEARSIZE(year) ((year) % 4 ? 365 : 366)
#define FIRSTSUNDAY(t) (((t)->tm_yday - (t)->tm_wday + 420) % 7)