aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-10 05:31:31 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-10 05:31:31 +0000
commit4f50cbff1ac355e426ae9a8fc5a268b433529c9e (patch)
tree28866ce4d18844ff33fc202c3c9f07d5a427d27d
parentdcd8a05e6d0300019f351c60d1488c15aa2d5a42 (diff)
Another fix for Mac OS X.
While trying to fix this the "right" way, I wandered into dependency hell. Two hours later, I backed out, and just removed the offending code. ast_inline_api only goes one level deep and then it breaks. Ouch. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@285961 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--include/asterisk/select.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/asterisk/select.h b/include/asterisk/select.h
index 773b0a54e..ac2284fc7 100644
--- a/include/asterisk/select.h
+++ b/include/asterisk/select.h
@@ -23,10 +23,11 @@
#ifndef __AST_SELECT_H
#define __AST_SELECT_H
-#include "asterisk/autoconfig.h"
+#include <sys/time.h>
#include <sys/select.h>
#include <errno.h>
-#include "asterisk/utils.h"
+
+#include "asterisk/compat.h"
#ifdef __cplusplus
extern "C" {
@@ -57,7 +58,7 @@ typedef struct {
if (fd / sizeof(*bytes) + ((fd + 1) % sizeof(*bytes) ? 1 : 0) < sizeof(*(fds))) { \
bytes[fd / (sizeof(*bytes) * 8)] |= ((TYPEOF_FD_SET_FDS_BITS) 1) << (fd % (sizeof(*bytes) * 8)); \
} else { \
- ast_log(LOG_ERROR, "FD %d exceeds the maximum size of ast_fdset!\n", fd); \
+ fprintf(stderr, "FD %d exceeds the maximum size of ast_fdset!\n", fd); \
} \
} while (0)
#endif /* HAVE_VARIABLE_FDSET */
@@ -75,12 +76,9 @@ typedef struct {
static inline int ast_select(int nfds, ast_fdset *rfds, ast_fdset *wfds, ast_fdset *efds, struct timeval *tvp)
{
#ifdef __linux__
- ast_assert((unsigned int) nfds <= ast_FD_SETSIZE);
return select(nfds, (fd_set *) rfds, (fd_set *) wfds, (fd_set *) efds, tvp);
#else
int save_errno = 0;
-
- ast_assert((unsigned int) nfds <= ast_FD_SETSIZE);
if (tvp) {
struct timeval tv, tvstart, tvend, tvlen;
int res;