diff options
author | Stefan Fritsch <sf@sfritsch.de> | 2011-12-27 19:43:09 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@sfritsch.de> | 2011-12-27 19:43:09 +0100 |
commit | 5b56d06a01a150fc9685e6f913774be3f9deb49f (patch) | |
tree | 9fbfbe0313b782941f1c2c4d3cb5203817144108 /srclib/apr/include/arch/unix | |
parent | 498ea95018b369e62646a98c7d7d5413b56e170c (diff) | |
download | apache2-5b56d06a01a150fc9685e6f913774be3f9deb49f.tar.gz |
Upstream tarball 2.2.19upstream/2.2.19
Diffstat (limited to 'srclib/apr/include/arch/unix')
-rw-r--r-- | srclib/apr/include/arch/unix/apr_arch_inherit.h | 4 | ||||
-rw-r--r-- | srclib/apr/include/arch/unix/apr_arch_poll_private.h | 1 | ||||
-rw-r--r-- | srclib/apr/include/arch/unix/apr_private.h.in | 78 |
3 files changed, 63 insertions, 20 deletions
diff --git a/srclib/apr/include/arch/unix/apr_arch_inherit.h b/srclib/apr/include/arch/unix/apr_arch_inherit.h index 6ae2435f..21543c1e 100644 --- a/srclib/apr/include/arch/unix/apr_arch_inherit.h +++ b/srclib/apr/include/arch/unix/apr_arch_inherit.h @@ -24,7 +24,7 @@ #define APR_IMPLEMENT_INHERIT_SET(name, flag, pool, cleanup) \ apr_status_t apr_##name##_inherit_set(apr_##name##_t *the##name) \ { \ - if (the##name->flag & APR_FILE_NOCLEANUP) \ + if (the##name->flag & APR_FOPEN_NOCLEANUP) \ return APR_EINVAL; \ if (!(the##name->flag & APR_INHERIT)) { \ int flags = fcntl(the##name->name##des, F_GETFD); \ @@ -44,7 +44,7 @@ apr_status_t apr_##name##_inherit_set(apr_##name##_t *the##name) \ #define APR_IMPLEMENT_INHERIT_UNSET(name, flag, pool, cleanup) \ apr_status_t apr_##name##_inherit_unset(apr_##name##_t *the##name) \ { \ - if (the##name->flag & APR_FILE_NOCLEANUP) \ + if (the##name->flag & APR_FOPEN_NOCLEANUP) \ return APR_EINVAL; \ if (the##name->flag & APR_INHERIT) { \ int flags; \ diff --git a/srclib/apr/include/arch/unix/apr_arch_poll_private.h b/srclib/apr/include/arch/unix/apr_arch_poll_private.h index a2673049..1d31f96c 100644 --- a/srclib/apr/include/arch/unix/apr_arch_poll_private.h +++ b/srclib/apr/include/arch/unix/apr_arch_poll_private.h @@ -115,6 +115,7 @@ struct apr_pollset_t apr_uint32_t flags; /* Pipe descriptors used for wakeup */ apr_file_t *wakeup_pipe[2]; + apr_pollfd_t wakeup_pfd; apr_pollset_private_t *p; apr_pollset_provider_t *provider; }; diff --git a/srclib/apr/include/arch/unix/apr_private.h.in b/srclib/apr/include/arch/unix/apr_private.h.in index bc232cfd..9616ab53 100644 --- a/srclib/apr/include/arch/unix/apr_private.h.in +++ b/srclib/apr/include/arch/unix/apr_private.h.in @@ -8,6 +8,9 @@ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD +/* Define if apr_allocator should use mmap */ +#undef APR_ALLOCATOR_USES_MMAP + /* Define as function which can be used for conversion of strings to apr_int64_t */ #undef APR_INT64_STRFN @@ -241,33 +244,15 @@ /* Define to 1 if you have the <langinfo.h> header file. */ #undef HAVE_LANGINFO_H -/* Enable if this library is available */ -#undef HAVE_LIBADVAPI32 - /* Define to 1 if you have the `bsd' library (-lbsd). */ #undef HAVE_LIBBSD -/* Enable if this library is available */ -#undef HAVE_LIBKERNEL32 - -/* Define to 1 if you have the `msvcrt' library (-lmsvcrt). */ -#undef HAVE_LIBMSVCRT - -/* Enable if this library is available */ -#undef HAVE_LIBRPCRT4 - /* Define to 1 if you have the `sendfile' library (-lsendfile). */ #undef HAVE_LIBSENDFILE -/* Enable if this library is available */ -#undef HAVE_LIBSHELL32 - /* Define to 1 if you have the `truerand' library (-ltruerand). */ #undef HAVE_LIBTRUERAND -/* Enable if this library is available */ -#undef HAVE_LIBWS2_32 - /* Define to 1 if you have the <limits.h> header file. */ #undef HAVE_LIMITS_H @@ -760,6 +745,9 @@ /* The size of `char', as computed by sizeof. */ #undef SIZEOF_CHAR +/* The size of ino_t */ +#undef SIZEOF_INO_T + /* The size of `int', as computed by sizeof. */ #undef SIZEOF_INT @@ -941,6 +929,60 @@ #endif /* + * Darwin 10's default compiler (gcc42) builds for both 64 and + * 32 bit architectures unless specifically told not to. + * In those cases, we need to override types depending on how + * we're being built at compile time. + * NOTE: This is an ugly work-around for Darwin's + * concept of universal binaries, a single package + * (executable, lib, etc...) which contains both 32 + * and 64 bit versions. The issue is that if APR is + * built universally, if something else is compiled + * against it, some bit sizes will depend on whether + * it is 32 or 64 bit. This is determined by the __LP64__ + * flag. Since we need to support both, we have to + * handle OS X unqiuely. + */ +#ifdef DARWIN_10 + +#undef APR_OFF_T_STRFN +#undef APR_INT64_STRFN +#undef SIZEOF_LONG +#undef SIZEOF_SIZE_T +#undef SIZEOF_SSIZE_T +#undef SIZEOF_VOIDP +#undef SIZEOF_STRUCT_IOVEC + +#ifdef __LP64__ + #define APR_INT64_STRFN strtol + #define SIZEOF_LONG 8 + #define SIZEOF_SIZE_T 8 + #define SIZEOF_SSIZE_T 8 + #define SIZEOF_VOIDP 8 + #define SIZEOF_STRUCT_IOVEC 16 +#else + #define APR_INT64_STRFN strtoll + #define SIZEOF_LONG 4 + #define SIZEOF_SIZE_T 4 + #define SIZEOF_SSIZE_T 4 + #define SIZEOF_VOIDP 4 + #define SIZEOF_STRUCT_IOVEC 8 +#endif + +#undef APR_OFF_T_STRFN +#define APR_OFF_T_STRFN APR_INT64_STRFN + + +#undef SETPGRP_VOID +#ifdef __DARWIN_UNIX03 + #define SETPGRP_VOID 1 +#else +/* #undef SETPGRP_VOID */ +#endif + +#endif /* DARWIN_10 */ + +/* * Include common private declarations. */ #include "../apr_private_common.h" |