diff options
author | Brian Pane <brianp@apache.org> | 2002-09-09 22:02:17 +0000 |
---|---|---|
committer | Brian Pane <brianp@apache.org> | 2002-09-09 22:02:17 +0000 |
commit | 280546ac57d4f67c9dc7e9898260acf7e373c72c (patch) | |
tree | 0aa8167c3671df96bf1f7126472f4f50e8dd10f4 /poll | |
parent | f04cb7e1ce632ade28ed64ce439a8536a89bad00 (diff) | |
download | apr-280546ac57d4f67c9dc7e9898260acf7e373c72c.tar.gz |
Include alloca.h on Tru64 to ensure that alloca gets redefined to
a version that works properly with threads
Submitted by: David Hill [ddhill@zk3.dec.com]
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63854 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r-- | poll/unix/poll.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c index 657625d97..9a31ecaa1 100644 --- a/poll/unix/poll.c +++ b/poll/unix/poll.c @@ -64,6 +64,10 @@ #if HAVE_SYS_POLL_H #include <sys/poll.h> #endif +#if HAVE_ALLOCA && defined(__osf__) +/* Tru64 UNIX requires this for proper alloca operation in threaded programs */ +#include <alloca.h> +#endif #ifdef NETWARE #define HAS_SOCKETS(dt) (dt == APR_POLL_SOCKET) ? 1 : 0 |