summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'job.c')
-rw-r--r--job.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/job.c b/job.c
index 352afdf..882deb1 100644
--- a/job.c
+++ b/job.c
@@ -116,6 +116,10 @@ extern int getdtablesize ();
#else
#include <sys/param.h>
#define getdtablesize() NOFILE
+#if !defined (NOFILE) && defined (NOFILES_MAX)
+/* SCO 3.2 "devsys 4.2" defines NOFILES_{MIN,MAX} in lieu of NOFILE. */
+#define NOFILE NOFILES_MAX
+#endif
#endif
#endif