You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1995/09/12 16:52:25 UTC
http_config.c patch for NEXT
I have followed up the help request on Usenet with the following
patch.
*** http_config.c.orig Tue Sep 12 09:30:23 1995
--- http_config.c Tue Sep 12 09:32:33 1995
***************
*** 84,91 ****
--- 84,93 ----
#include "http_conf_globals.h" /* Sigh... */
#ifdef BSD
+ #ifndef NEXT
#include <sys/resource.h>
#endif
+ #endif
/****************************************************************
*
***************
*** 627,632 ****
--- 629,635 ----
server_rec *s = (server_rec *)pcalloc (p, sizeof (server_rec));
#ifdef BSD
+ #ifndef NEXT
struct rlimit limits;
getrlimit ( RLIMIT_NOFILE, &limits );
***************
*** 635,640 ****
--- 638,644 ----
if ( setrlimit ( RLIMIT_NOFILE, &limits ) < 0 )
fprintf (stderr, "Cannot exceed hard limit for open files");
}
+ #endif
#endif
s->port = 0;