Skip to content

Commit 10db5f3

Browse files
committed
Fix builds on systems that don't define OFF_MAX.
1 parent 0cf4fb2 commit 10db5f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scheduler/conf.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,7 +2792,13 @@ parse_variable(
27922792
}
27932793
}
27942794

2795+
#ifdef OFF_MAX
27952796
if (n < 0 || n > (double)OFF_MAX)
2797+
#elif defined(LLONG_MAX)
2798+
if (n < 0 || n > (double)LLONG_MAX)
2799+
#else
2800+
if (n < 0 || n > (double)LONG_MAX)
2801+
#endif /* OFF_MAX */
27962802
{
27972803
cupsdLogMessage(CUPSD_LOG_ERROR, "Bad size value for %s on line %d of %s.", line, linenum, filename);
27982804
return (0);

0 commit comments

Comments
 (0)