From: Jeff Trawick Date: Sat, 10 Jun 2000 12:02:29 +0000 (+0000) Subject: Get FreeBSD building again with the resource limiting changes (FreeBSD X-Git-Tag: APACHE_2_0_ALPHA_5~388 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88b6c4ac2b35bbd31df9c18cb774f6b86c10c121;p=apache Get FreeBSD building again with the resource limiting changes (FreeBSD 3.4, at least). rlim_t is defined in , so we usually need that. Some stuff in needs for timeval just to be able to compile :( git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85500 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/acinclude.m4 b/acinclude.m4 index 32e24cc276..b5c8359d90 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -134,7 +134,11 @@ dnl If rlim_t is not defined, define it to int dnl AC_DEFUN(AC_TYPE_RLIM_T, [ AC_CACHE_CHECK([for rlim_t], ac_cv_type_rlim_t, [ - AC_TRY_COMPILE([#include ], [rlim_t spoon;], [ + AC_TRY_COMPILE([ +#include +#include +#include +], [rlim_t spoon;], [ ac_cv_type_rlim_t=yes ],[ac_cv_type_rlim_t=no ]) diff --git a/include/ap_config.h b/include/ap_config.h index 2f0a8a3cac..0b7298b8ee 100644 --- a/include/ap_config.h +++ b/include/ap_config.h @@ -120,6 +120,10 @@ extern "C" { #include #endif +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif + #ifdef HAVE_NETDB_H #include #endif