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

John Turner jdturner at nc.rr.com
Wed Jul 7 08:21:33 MST 2004

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)


--- 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>

  static inline int ast_strlen_zero(const char *s)

More information about the asterisk-dev mailing list