From 4ae98f5100832152d16168d858cfcefabe304ca5 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 23 Jan 2001 05:13:25 +0000 Subject: [PATCH] Use approptiate typoe based on configure results. --- lib/isc/include/isc/platform.h.in | 7 ++++++- lib/isc/unix/resource.c | 8 ++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/isc/include/isc/platform.h.in b/lib/isc/include/isc/platform.h.in index 79bc895658..7bd79e8476 100644 --- a/lib/isc/include/isc/platform.h.in +++ b/lib/isc/include/isc/platform.h.in @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: platform.h.in,v 1.19 2001/01/23 04:47:55 marka Exp $ */ +/* $Id: platform.h.in,v 1.20 2001/01/23 05:13:24 marka Exp $ */ #ifndef ISC_PLATFORM_H #define ISC_PLATFORM_H 1 @@ -137,6 +137,11 @@ */ @ISC_PLATFORM_NEEDSYSSELECTH@ +/* + * Type used for resource limits. + */ +@ISC_PLATFORM_RLIMITTYPE@ + /* * Tell emacs to use C mode for this file. * diff --git a/lib/isc/unix/resource.c b/lib/isc/unix/resource.c index 1ca2de42d5..d0548eb2ca 100644 --- a/lib/isc/unix/resource.c +++ b/lib/isc/unix/resource.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: resource.c,v 1.8 2001/01/23 03:14:28 marka Exp $ */ +/* $Id: resource.c,v 1.9 2001/01/23 05:13:25 marka Exp $ */ #include @@ -30,11 +30,7 @@ #include "errno2result.h" #ifndef HAVE_RLIM_T -/* - * quad_t is right for BSD/OS, the only system for which the lack of rlim_t - * has been observed so far. - */ -typedef quad_t rlim_t; +typedef ISC_PLATFORM_RLIMITTYPE rlim_t; #endif static isc_result_t