diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-11-17 06:33:07 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-11-17 06:33:07 +0000 |
commit | 505499588b17ed5397688ed10ea52c92318a8a59 (patch) | |
tree | d386269f08375e9b9476aff1b8a87ad8e8abd780 /include/asterisk/compat.h | |
parent | 89a49511a479330ed1a3b655766b44b4b29cabf5 (diff) |
Update the configure script check for sys/poll.h to also provide the result in
include/asterisk/autoconfig.h. Also, move the conditional include of sys/poll.h
or asterisk/poll-compat.h into asterisk/config.h instead of the two headers it
existed in before.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r-- | include/asterisk/compat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index f70dcea16..819ac4675 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -56,6 +56,12 @@ #include <string.h> #endif +#ifdef HAVE_SYS_POLL_H +#include <sys/poll.h> +#else +#include "asterisk/poll-compat.h" +#endif + #if !defined(HAVE_ASPRINTF) && !defined(__AST_DEBUG_MALLOC) int asprintf(char **str, const char *fmt, ...); #endif |