Commit 511dcde5 authored by Per Cederqvist's avatar Per Cederqvist

POSIXized include files.

(MAX_NO_OF_CONNECTIONS): Now initialized by main() if HAVE_SYSCONF or
	HAVE_GETDTABLESIZE is defined.
parent 2cff8ea1
/*
* $Id: server-config.c,v 0.21 1993/10/08 17:44:04 ceder Exp $
* $Id: server-config.c,v 0.22 1993/10/10 17:01:54 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -29,13 +29,13 @@
* to recompile the entire server.
*/
#include <config.h>
static char *rcsid = "$Id: server-config.c,v 0.21 1993/10/08 17:44:04 ceder Exp $";
static char *rcsid = "$Id: server-config.c,v 0.22 1993/10/10 17:01:54 ceder Exp $";
#include "rcs.h"
USE(rcsid);
#include <limits.h>
#include "config.h"
/* Where to save things. These are used by lyskomd and dbck. */
......@@ -139,10 +139,10 @@ const int CACHE_TEXT_STATS = 20;
* mail to kom@lysator.liu.se for more info.)
*/
#ifdef HAVE_GETDTABLESIZE
#if defined(HAVE_GETDTABLESIZE) || defined(HAVE_SYSCONF)
int MAX_NO_OF_CONNECTIONS = 0; /* Initialized by main(). */
#else
const int MAX_NO_OF_CONNECTIONS = (MAX_OPEN_FD - PROTECTED_FDS);
const int MAX_NO_OF_CONNECTIONS = (OPEN_MAX - PROTECTED_FDS);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment