brianp 2002/09/09 15:02:17
Modified: poll/unix poll.c
. CHANGES
Log:
Include alloca.h on Tru64 to ensure that alloca gets redefined to
a version that works properly with threads
Submitted by: David Hill [EMAIL PROTECTED]
Revision Changes Path
1.31 +4 -0 apr/poll/unix/poll.c
Index: poll.c
===================================================================
RCS file: /home/cvs/apr/poll/unix/poll.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- poll.c 1 Sep 2002 04:15:11 -0000 1.30
+++ poll.c 9 Sep 2002 22:02:16 -0000 1.31
@@ -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
1.330 +3 -0 apr/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apr/CHANGES,v
retrieving revision 1.329
retrieving revision 1.330
diff -u -r1.329 -r1.330
--- CHANGES 5 Sep 2002 05:26:48 -0000 1.329
+++ CHANGES 9 Sep 2002 22:02:17 -0000 1.330
@@ -1,5 +1,8 @@
Changes with APR 0.9.0
+ *) Fixed usage of alloca in apr_poll() on Tru64
+ [Dave Hill <[EMAIL PROTECTED]>]
+
*) Running "make check" in the toplevel directory or the test/ directory
will build and run all test programs. [Aaron Bannert]