mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 07:35:18 +00:00
use poll as detected by configure
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -125,11 +125,10 @@ References:
|
|||||||
|
|
||||||
#include "asterisk/abstract_jb.h"
|
#include "asterisk/abstract_jb.h"
|
||||||
|
|
||||||
#include <unistd.h>
|
#ifdef HAVE_POLL
|
||||||
#ifdef POLLCOMPAT
|
|
||||||
#include "asterisk/poll-compat.h"
|
|
||||||
#else
|
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
|
#else
|
||||||
|
#include "asterisk/poll-compat.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
@@ -23,10 +23,10 @@
|
|||||||
#ifndef _ASTERISK_IO_H
|
#ifndef _ASTERISK_IO_H
|
||||||
#define _ASTERISK_IO_H
|
#define _ASTERISK_IO_H
|
||||||
|
|
||||||
#ifdef POLLCOMPAT
|
#ifdef HAVE_POLL
|
||||||
#include "asterisk/poll-compat.h"
|
|
||||||
#else
|
|
||||||
#include <sys/poll.h> /* For POLL* constants */
|
#include <sys/poll.h> /* For POLL* constants */
|
||||||
|
#else
|
||||||
|
#include "asterisk/poll-compat.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
@@ -41,14 +41,8 @@ OBJS+=say.o
|
|||||||
AST_LIBS += $(SSL_LIB)
|
AST_LIBS += $(SSL_LIB)
|
||||||
AST_LIBS += $(BKTR_LIB)
|
AST_LIBS += $(BKTR_LIB)
|
||||||
|
|
||||||
ifneq ($(findstring darwin,$(OSARCH)),)
|
ifeq ($(POLL_AVAILABLE),)
|
||||||
OBJS+=poll.o
|
OBJS+=poll.o
|
||||||
ASTCFLAGS+=-DPOLLCOMPAT
|
|
||||||
else
|
|
||||||
ifeq ($(wildcard /usr/include/sys/poll.h),)
|
|
||||||
OBJS+=poll.o
|
|
||||||
ASTCFLAGS+=-DPOLLCOMPAT
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(wildcard /usr/include/dlfcn.h),)
|
ifeq ($(wildcard /usr/include/dlfcn.h),)
|
||||||
|
Reference in New Issue
Block a user