include <sys/time.h> on 4.2 systems
This commit is contained in:
parent
e04230a126
commit
e0f737c293
4 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
/* $Header$ */
|
||||
#ifdef __BSD4_2
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#define DATE_STR "??? ??? ?? ??:??:?? ????\n"
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
/* $Header$ */
|
||||
#ifdef __BSD_2
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
extern struct tm *localtime();
|
||||
extern char *asctime();
|
||||
|
|
|
@ -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 };
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue