diff options
Diffstat (limited to 'include/arch/unix/apr_arch_inherit.h')
-rw-r--r-- | include/arch/unix/apr_arch_inherit.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/arch/unix/apr_arch_inherit.h b/include/arch/unix/apr_arch_inherit.h index c4c726770..57f9e6872 100644 --- a/include/arch/unix/apr_arch_inherit.h +++ b/include/arch/unix/apr_arch_inherit.h @@ -59,7 +59,7 @@ #define APR_INHERIT (1 << 24) /* Must not conflict with other bits */ -#define APR_IMPLEMENT_INHERIT_SET(name, flag, pool, cleanup) \ +#define APR_IMPLEMENT_INHERIT_SET(name, flag, fd, pool, cleanup) \ apr_status_t apr_##name##_inherit_set(apr_##name##_t *the##name) \ { \ if (the##name->flag & APR_FILE_NOCLEANUP) \ @@ -71,14 +71,9 @@ apr_status_t apr_##name##_inherit_set(apr_##name##_t *the##name) \ cleanup, apr_pool_cleanup_null); \ } \ return APR_SUCCESS; \ -} \ -/* Deprecated */ \ -void apr_##name##_set_inherit(apr_##name##_t *the##name) \ -{ \ - apr_##name##_inherit_set(the##name); \ } -#define APR_IMPLEMENT_INHERIT_UNSET(name, flag, pool, cleanup) \ +#define APR_IMPLEMENT_INHERIT_UNSET(name, flag, fd, pool, cleanup) \ apr_status_t apr_##name##_inherit_unset(apr_##name##_t *the##name) \ { \ if (the##name->flag & APR_FILE_NOCLEANUP) \ @@ -90,7 +85,14 @@ apr_status_t apr_##name##_inherit_unset(apr_##name##_t *the##name) \ cleanup, cleanup); \ } \ return APR_SUCCESS; \ -} \ +} + +/* Deprecated */ \ +void apr_##name##_set_inherit(apr_##name##_t *the##name) \ +{ \ + apr_##name##_inherit_set(the##name); \ +} + /* Deprecated */ \ void apr_##name##_unset_inherit(apr_##name##_t *the##name) \ { \ |