[Asterisk-Dev] Has anyone built Asterisk on OSX/Darwin recently?

Anne Marcel Roorda marcel at piglet.slowthinkers.net
Wed Jul 7 14:38:50 MST 2004


This include also fixes building on FreeBSD.

Thanks,

- marcel

In message <546CD39A-D029-11D8-AA6C-000A95E8A9C0 at nc.rr.com>, John Turner writes
:

> On Jul 7, 2004, at 5:24 AM, Sunrise Ltd wrote:
> 
> > it built out of the box a while ago but now there seems to
> > a header file missing, ie byteswap.h referenced by
> > aesopt.h.
> >
> > further gethostbyname_r (called by ast_gethostbyname)
> > seems to be undefined.
> >
> > this is on OSX 10.3.4 with CVS of last weekend.
> >
> > any ideas?
> >
> > thanks
> > benjk
> 
> Your problems sound like the issues that were fixed last week. I was 
> able to build fine yesterday, but some recent changes did break the OS 
> X build (below are my fixes - I will submit them to bugs.digium.com as 
> soon as I can find my login password).
> 
> utils.c was fixed for OS X in version 1.13 and is now at 1.15 (that is 
> where gethostbyname_r is defined)
> 
> John
> 
> --- include/asterisk/utils.h    29 Jun 2004 17:54:25 -0000      1.6
> +++ include/asterisk/utils.h    7 Jul 2004 15:08:26 -0000
> @@ -13,6 +13,9 @@
>   #define _ASTERISK_UTIL_H
> 
>   #include <netdb.h>
> +#ifdef __APPLE__
> +#include <netinet/in.h>
> +#endif
> 
>   static inline int ast_strlen_zero(const char *s)
>   {
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 



More information about the asterisk-dev mailing list