From: Joshua Colp Date: Wed, 1 Nov 2006 18:39:47 +0000 (+0000) Subject: Force poll() emulation for Darwin to always be on. It's too broken to consider being... X-Git-Tag: 1.4.0-beta4~218 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=673e9f53a81ea24b2fa27cd335de6ab206d2238c;p=thirdparty%2Fasterisk.git Force poll() emulation for Darwin to always be on. It's too broken to consider being used. This resolves the console issue OSX users have been seeing. I would have liked to autoconf this but I haven't been able to come up with a test case that works. Que sera. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46780 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/Makefile b/main/Makefile index a400ebd300..23e4e22f2d 100644 --- a/main/Makefile +++ b/main/Makefile @@ -37,9 +37,14 @@ OBJS+=stdtime/localtime.o # by a module. OBJS+=say.o -ifeq ($(wildcard /usr/include/sys/poll.h),) +ifneq ($(findstring darwin,$(OSARCH)),) OBJS+=poll.o ASTCFLAGS+=-DPOLLCOMPAT +else + ifeq ($(wildcard /usr/include/sys/poll.h),) + OBJS+=poll.o + ASTCFLAGS+=-DPOLLCOMPAT + endif endif ifeq ($(wildcard /usr/include/dlfcn.h),)