* Removed compile-time checks for _SC_OPEN_MAX, _PC_PATH_MAX and _SC_PAGESIZE
and used simple build-time #ifdefs. git-svn-id: svn://svn.zoy.org/elk/trunk@196 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
+1
-1
@@ -194,7 +194,7 @@ int Num_Filedescriptors() {
|
||||
ret = OPEN_MAX;
|
||||
#elif defined(HAVE_GETDTABLESIZE)
|
||||
ret = getdtablesize();
|
||||
#elif defined(SC_OPEN_MAX_IN_UNISTD_H)
|
||||
#elif defined(_SC_OPEN_MAX)
|
||||
static r;
|
||||
if (r == 0) {
|
||||
if ((r = sysconf(_SC_OPEN_MAX)) == -1)
|
||||
|
||||
Reference in New Issue
Block a user