python/hypothesis: update to 6.121.0
[oi-userland.git] / components / library / apr / patches / 04-extended_file.patch
blob7c8df4c723cbdee748cf2652c7684882a7361f2d
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
3 @@ -23,6 +23,9 @@
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>
9 +#endif
11 APR_DECLARE(apr_status_t) apr_app_initialize(int *argc,
12 const char * const * *argv,
13 @@ -47,6 +50,17 @@
14 return APR_SUCCESS;
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
21 + * ignored.
22 + */
23 + if ((errno != EAGAIN) && (errno != EEXIST))
24 + return APR_FROM_OS_ERROR(errno);
25 + }
26 +#endif
28 #if !defined(BEOS) && !defined(OS2)
29 apr_proc_mutex_unix_setup_lock();
30 apr_unix_setup_time();