Fix OpenBSD compile (bug #1830)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-06-12 14:53:53 +00:00
parent a3355d9fe2
commit 1b23fce2bd
2 changed files with 2 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ static void
packdate (unsigned char *o, time_t w)
{
struct tm *t = localtime (&w);
#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__OpenBSD__)
int z = - t->tm_gmtoff / 3600 / 15;
#else
int z = timezone / 3600 / 15;