[Asterisk-Dev] OpenBSD-Patch for current CVS

Folke Ashberg folke at ashberg.de
Wed Jun 9 15:45:22 MST 2004


Hi there,

to compile asterisk on OpenBSD i had to do some very easy changes, see
attached diff.

Kind Regards

Folke

-- 
Folke Ashberg
folke at ashberg.de
www.ashberg.de
-------------- next part --------------
diff asterisk/apps/app_sms.c asterisk-folke/apps/app_sms.c
--- asterisk/apps/app_sms.c	Mon May 31 19:01:32 2004
+++ asterisk-folke/apps/app_sms.c	Thu Jun 10 00:23:35 2004
@@ -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;
diff asterisk/utils.c asterisk-folke/utils.c
--- asterisk/utils.c	Wed Jun  9 03:45:07 2004
+++ asterisk-folke/utils.c	Thu Jun 10 00:21:12 2004
@@ -14,7 +14,7 @@
 #include <asterisk/lock.h>
 #include <asterisk/utils.h>
 
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
 
 /* duh? ERANGE value copied from web... */
 #define ERANGE 34


More information about the asterisk-dev mailing list