mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2911,7 +2911,9 @@ int ast_safe_fork(int stop_reaper)
|
||||
ast_replace_sigchld();
|
||||
}
|
||||
|
||||
sigfillset(&signal_set);
|
||||
/* GCC 4.9 gives a bogus "right-hand operand of comma expression has
|
||||
* no effect" warning */
|
||||
(void) sigfillset(&signal_set);
|
||||
pthread_sigmask(SIG_BLOCK, &signal_set, &old_set);
|
||||
|
||||
pid = fork();
|
||||
|
Reference in New Issue
Block a user