mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-29 08:09:03 +00:00
[HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro using sysconf.
This commit is contained in:
parent
75ea6c3ce2
commit
3f506aaf90
1 changed files with 4 additions and 0 deletions
4
job.c
4
job.c
|
@ -122,6 +122,9 @@ extern int setgid (), getgid ();
|
||||||
#ifdef HAVE_GETDTABLESIZE
|
#ifdef HAVE_GETDTABLESIZE
|
||||||
extern int getdtablesize ();
|
extern int getdtablesize ();
|
||||||
#else
|
#else
|
||||||
|
#ifdef HAVE_SYSCONF_OPEN_MAX
|
||||||
|
#define getdtablesize() ((int) sysconf (_SC_OPEN_MAX))
|
||||||
|
#else
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#define getdtablesize() NOFILE
|
#define getdtablesize() NOFILE
|
||||||
#if !defined (NOFILE) && defined (NOFILES_MAX)
|
#if !defined (NOFILE) && defined (NOFILES_MAX)
|
||||||
|
@ -130,6 +133,7 @@ extern int getdtablesize ();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
extern int getloadavg ();
|
extern int getloadavg ();
|
||||||
extern int start_remote_job_p ();
|
extern int start_remote_job_p ();
|
||||||
|
|
Loading…
Reference in a new issue