poll.h. If anyone can think of a cleaner way to handle this, suggestions
are welcome
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6122
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
CC=gcc
INSTALL=install
+CFLAGS+=$(shell if uname -r|grep -q 8.2.0 ; then echo " -DOSX10_4 " ; fi)
+
_all: all
@echo " +--------- Asterisk Build Complete ---------+"
@echo " + Asterisk has successfully been built, but +"
#include <asterisk/chanvars.h>
#include <unistd.h>
#include <setjmp.h>
-#if defined(__APPLE__)
+#if !defined(OSX10_4) && defined(__APPLE__)
#include <asterisk/poll-compat.h>
#else
#include <sys/poll.h>
#ifndef _IO_H
#define _IO_H
-#ifdef __APPLE__
+#if !defined(OSX10_4) && defined(__APPLE__)
#include <asterisk/poll-compat.h>
#else
#include <sys/poll.h> /* For POLL* constants */