diff options
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -122,6 +122,9 @@ extern int setgid (), getgid (); #ifdef HAVE_GETDTABLESIZE extern int getdtablesize (); #else +#ifdef HAVE_SYSCONF_OPEN_MAX +#define getdtablesize() ((int) sysconf (_SC_OPEN_MAX)) +#else #include <sys/param.h> #define getdtablesize() NOFILE #if !defined (NOFILE) && defined (NOFILES_MAX) @@ -130,6 +133,7 @@ extern int getdtablesize (); #endif #endif #endif +#endif extern int getloadavg (); extern int start_remote_job_p (); |