www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Kasichainula <man...@raleigh.ibm.com>
Subject Re: os-linux/3177: typedef error in http_core.c
Date Mon, 02 Nov 1998 04:50:00 GMT
The following reply was made to PR os-linux/3177; it has been noted by GNATS.

From: Manoj Kasichainula <manojk@raleigh.ibm.com>
To: Michael <michael@bizsystems.com>
Cc: apbugs@apache.org
Subject: Re: os-linux/3177: typedef error in http_core.c
Date: Sun, 1 Nov 1998 23:44:52 -0500

 I've been working with the submitter offline on this problem, but to
 summarize: I think the problem is that the #ifdef block that contains
 the typedef for rlim_t in ap_config.h is contained in an #ifdef block
 limiting it to kernels >= 2.0. Here's a potential patch for this:
 please try it and report on whether it works. I was able to compile
 successfully on a 1.x system with this patch.
 
 Index: src/include/ap_config.h
 ===================================================================
 RCS file: /export/home/cvs/apache-1.3/src/include/ap_config.h,v
 retrieving revision 1.241
 diff -u -r1.241 ap_config.h
 --- ap_config.h	1998/10/19 02:16:27	1.241
 +++ ap_config.h	1998/10/29 23:12:36
 @@ -436,11 +436,6 @@
  #define HAVE_MMAP 1
  #define USE_MMAP_FILES
  
 -/* glibc 2.1 and later finally define rlim_t */
 -#if !defined(__GLIBC__) || __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__
< 1)
 -typedef int rlim_t;
 -#endif
 -
  /* flock is faster ... but hasn't been tested on 1.x systems */
  #define USE_FLOCK_SERIALIZED_ACCEPT
  
 @@ -456,6 +451,11 @@
  #undef NEED_STRDUP
  #include <sys/time.h>
  #define HAVE_SYSLOG 1
 +
 +/* glibc 2.1 and later finally define rlim_t */
 +#if !defined(__GLIBC__) || __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__
< 1)
 +typedef int rlim_t;
 +#endif
  
  #elif defined(SCO)
  #undef HAVE_GMTOFF

Mime
View raw message