Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_ext_filter: fix checks for apr_procattr_limit_set #374

Conversation

pzalewski-thegoodpenguin

The existence of the apr_procattr_limit_set function declaration is dependant on the APR_HAVE_STRUCT_RLIMIT define within the APR library.

However the user of this function in httpd is inferring the knowledge about its declaration based on the defines: RLIMIT_CPU, RLIMIT_DATA, RLIMIT_VMEM, RLIMIT_AS, RLIMIT_NPROC. This can result in an implicit declaration of function error during a build.

Lets fix this by repeating the work done within the mod_cgi module [1]. Add extra conditionals that check for APR_HAVE_STRUCT_RLIMIT define being set.

[1] https://svn.apache.org/viewvc?view=revision&revision=1172019

The existence of the apr_procattr_limit_set function
declaration is dependant on the APR_HAVE_STRUCT_RLIMIT
define within the APR library.

However the user of this function in httpd is inferring
the knowledge about its declaration based on the defines:
RLIMIT_CPU, RLIMIT_DATA, RLIMIT_VMEM, RLIMIT_AS, RLIMIT_NPROC.
This can result in an implicit declaration of function error
during a build.

Lets fix this by repeating the work done within the
mod_cgi module [1]. Add extra conditionals that check
for APR_HAVE_STRUCT_RLIMIT define being set.

[1] https://svn.apache.org/viewvc?view=revision&revision=1172019

Signed-off-by: Pawel Zalewski <[email protected]>
@pzalewski-thegoodpenguin
Copy link
Author

Closing as there is not interest in this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant