Re: [PATCH] compiling on OSX Snow Leopard

Paul Bagyenda <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
True indeed.

Updated one (attached) does not.


On Nov 09, 2009, at 12:30, Alexander Malysh wrote:

> Hi,
>
> this patch will break old OSX support and 32bit compilation.
>
> Thanks,
> Alexander Malysh
>
> Am 06.11.2009 um 12:24 schrieb Paul Bagyenda:
>
>> Kannel CVS crashes when compiled as-is on Snow Leopard. Minor patch  
>> fixes things. Attached.
>>
>> <x86_64-osx.patch>
>
x86_64-osx-2.patch (application/octet-stream, 781 B)
? el
? doc/alligata/alligata.tmp
? doc/arch/arch.tmp
? doc/userguide/userguide.tmp
? doc/wtls/wtls.tmp
Index: gwlib/octstr.c
===================================================================
RCS file: /home/cvs/gateway/gwlib/octstr.c,v
retrieving revision 1.184
diff -u -r1.184 octstr.c
--- gwlib/octstr.c	20 May 2009 10:01:43 -0000	1.184
+++ gwlib/octstr.c	9 Nov 2009 10:39:33 -0000
@@ -80,7 +80,7 @@
  * which makes passing of the &args a bit tricky 
  */
 #if (defined(__linux__) && (defined(__powerpc__) || defined(__s390__) || defined(__x86_64))) || \
-    (defined(__FreeBSD__) && defined(__amd64__))
+    (defined(__FreeBSD__) && defined(__amd64__)) || (defined(DARWIN) && defined(__x86_64__))
 #define VARGS(x)   (x)
 #define VALPARM(y) va_list y
 #define VALST(z)   (z)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.