OpenBSD fixes for dtcm. There are no global "timezone" and "tzname" symbols on BSD. Apart from that, mainly #ifdefs.

This commit is contained in:
Pascal Stumpf
2012-08-10 14:44:57 +02:00
committed by Jon Trulson
parent 3718075b7c
commit 57463ec10e
10 changed files with 34 additions and 1 deletions

View File

@@ -36,7 +36,12 @@
#include <string.h>
#include <pwd.h>
#include <time.h>
#if defined(CSRG_BASED)
#include <sys/limits.h>
#define MAXINT INT_MAX
#else
#include <values.h>
#endif
#ifdef SunOS
#include <sys/systeminfo.h>
#endif