mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
BSD portability enhancements (bug #234)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <asterisk/frame.h>
|
||||
#include <asterisk/sched.h>
|
||||
#include <asterisk/chanvars.h>
|
||||
#include <unistd.h>
|
||||
#include <setjmp.h>
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -771,7 +772,7 @@ static inline int ast_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds,
|
||||
|
||||
#define CHECK_BLOCKING(c) { \
|
||||
if ((c)->blocking) {\
|
||||
ast_log(LOG_WARNING, "Thread %ld Blocking '%s', already blocked by thread %ld in procedure %s\n", pthread_self(), (c)->name, (c)->blocker, (c)->blockproc); \
|
||||
ast_log(LOG_WARNING, "Thread %ld Blocking '%s', already blocked by thread %ld in procedure %s\n", (long) pthread_self(), (c)->name, (long) (c)->blocker, (c)->blockproc); \
|
||||
CRASH; \
|
||||
} else { \
|
||||
(c)->blocker = pthread_self(); \
|
||||
|
@@ -13,7 +13,9 @@
|
||||
|
||||
#ifndef _ASTERISK_SRV_H
|
||||
#define _ASTERISK_SRV_H
|
||||
#include <asterisk/channel.h>
|
||||
|
||||
struct ast_channel;
|
||||
|
||||
/* Lookup entry in SRV records Returns 1 if found, 0 if not found, -1 on hangup */
|
||||
extern int ast_get_srv(struct ast_channel *chan, char *host, int hostlen, int *port, const char *service);
|
||||
|
||||
|
Reference in New Issue
Block a user