Various fixes for OS X
authorDavid M. Lee <dlee@digium.com>
Mon, 26 Jan 2015 14:50:40 +0000 (14:50 +0000)
committerDavid M. Lee <dlee@digium.com>
Mon, 26 Jan 2015 14:50:40 +0000 (14:50 +0000)
commit965777ccfc61067d1dc79f79c12d52f794fa3983
treefc931f38e9acc6885ca0df5fdbc1e14bac437495
parenta8ae5a7bcb3c102b1a196d109a1d06507dd3dd1e
Various fixes for OS X

This patch addresses compilation errors on OS X. It's been a while, so
there's quite a few things.

 * Fixed __attribute__ decls in route.h to be portable.
 * Fixed htonll and ntohll to work when they are defined as macros.
 * Replaced sem_t usage with our ast_sem wrapper.
 * Added ast_sem_timedwait to our ast_sem wrapper.
 * Fixed some GCC 4.9 warnings using sig*set() functions.
 * Fixed some format strings for portability.
 * Fixed compilation issues with res_timing_kqueue (although tests still fail
   on OS X).
 * Fixed menuconfig /sbin/launchd detection, which disables res_timing_kqueue
   on OS X).

ASTERISK-24539 #close
Reported by: George Joseph

ASTERISK-24544 #close
Reported by: George Joseph

Review: https://reviewboard.asterisk.org/r/4327/
........

Merged revisions 431092 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
12 files changed:
channels/sip/include/route.h
configure
configure.ac
funcs/func_presencestate.c
include/asterisk/autoconfig.h.in
include/asterisk/sem.h
main/app.c
main/asterisk.c
main/bridge_channel.c
main/rtp_engine.c
main/sem.c
res/res_timing_kqueue.c