aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_sms.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-12 14:53:53 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-12 14:53:53 +0000
commit0fc3e43ba0f69c5308ccbaa65cec0f1d1d8e9d5e (patch)
tree8e17b3b9508e5e754f8c77b48065ab65621bfe56 /apps/app_sms.c
parent8ff8c3ad06efc886ed39946b2d740dd190cec0a3 (diff)
Fix OpenBSD compile (bug #1830)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3194 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sms.c')
-rwxr-xr-xapps/app_sms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c
index 6e3be3f94..7e704449f 100755
--- a/apps/app_sms.c
+++ b/apps/app_sms.c
@@ -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;