1 --- misc/unix/start.c.orig Fri Sep 19 11:41:54 2008
2 +++ misc/unix/start.c Fri Sep 19 11:44:38 2008
4 #include "apr_arch_proc_mutex.h" /* for apr_proc_mutex_unix_setup_lock() */
5 #include "apr_arch_internal_time.h"
7 +#if defined(SOLARIS2) && !defined(_LP64)
8 +#include <stdio_ext.h>
11 APR_DECLARE(apr_status_t) apr_app_initialize(int *argc,
12 const char * const * *argv,
17 +#if defined(SOLARIS2) && !defined(_LP64)
18 + if (enable_extended_FILE_stdio (-1, -1) < 0) {
19 + /* if the process has already enabled the extended file stdio
20 + * then, the above call will return an error. It should be
23 + if ((errno != EAGAIN) && (errno != EEXIST))
24 + return APR_FROM_OS_ERROR(errno);
28 #if !defined(BEOS) && !defined(OS2)
29 apr_proc_mutex_unix_setup_lock();
30 apr_unix_setup_time();