aboutsummaryrefslogtreecommitdiffstats
path: root/main/poll.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-30 18:37:17 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-30 18:37:17 +0000
commit336a05fe3af3ad3a65636df8cee7385e4a991c2f (patch)
tree6695388511a822262609807eb879d05e767b35fb /main/poll.c
parent34711433942e907d28688419d08b05e8cb0bcd85 (diff)
Various patches, to enable Asterisk to once again compile on Mac OS X.
One note on defining _POSIX_C_SOURCE: while this feature test macro works to require certain behaviors on Linux, it works differently on *BSD platforms to REMOVE certain API calls that are not in the POSIX specification, such as vasprintf(3). Thus, defining it while depending upon vasprintf (and other extensions to the POSIX standard) to be defined is a recipe to ensure that Asterisk is only buildable on Linux. Hence, this define which was meant to INCREASE portability, effectively ensures the opposite. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@214863 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/poll.c')
-rw-r--r--main/poll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/poll.c b/main/poll.c
index 62e681dca..fb0ccb2ac 100644
--- a/main/poll.c
+++ b/main/poll.c
@@ -83,6 +83,10 @@
#ifdef AST_POLL_COMPAT
+#ifndef MAX
+#define MAX(a,b) a > b ? a : b
+#endif
+
/*---------------------------------------------------------------------------*\
Private Functions
\*---------------------------------------------------------------------------*/