summaryrefslogtreecommitdiff
path: root/main/Makefile
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-07-28 19:53:56 +0000
committerMark Michelson <mmichelson@digium.com>2008-07-28 19:53:56 +0000
commit99db9f65b5bc2342bd0937047a0e6cfc9bb2e522 (patch)
tree7979e811b4a0d72d680fe0cc2681c8477def34df /main/Makefile
parent75d38f60241bc870780e80c3d74474f9d4682e75 (diff)
This commit compensates for buggy poll(2)
implementations. Asterisk has, for a long time, had its own implementation of poll(2) which just used the input arguments to call select(2). In 1.4, this internal implementation was used for Darwin systems. This was removed in Asterisk trunk at some point, but it seems as though this was not the right move to make. On Mac OS X, it appears as though the poll used to gather CLI input does not respond properly when connecting via a remote Asterisk console. Reverting to the use of Asterisk's poll fixed the issue. Also, there is now an option for the configure script, --enable-internal-poll, which will allow for anyone to use Asterisk's internal poll implementation in case they suspect that their system's poll implementation is buggy. closes issue #11928) Reported by: adriavidal Patches: 1.6.0-configurev2.patch uploaded by putnopvut (license 60) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@134125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/Makefile')
-rw-r--r--main/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/Makefile b/main/Makefile
index c27095f74..ddecb0b37 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -42,8 +42,13 @@ OBJS+=say.o
AST_LIBS += $(SSL_LIB)
AST_LIBS += $(BKTR_LIB)
+
ifeq ($(POLL_AVAILABLE),)
OBJS+=poll.o
+else
+ ifneq ($(findstring darwin,$(OSARCH)),)
+ OBJS+=poll.o
+ endif
endif
ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc linux-gnueabi ),)