Skip to content

Commit 50c6be1

Browse files
committed
Fix builds on systems that don't define OFF_MAX.
1 parent 1244db6 commit 50c6be1

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
@@ -2873,7 +2873,13 @@ parse_variable(
28732873
}
28742874
}
28752875

2876+
#ifdef OFF_MAX
28762877
if (n < 0 || n > (double)OFF_MAX)
2878+
#elif defined(LLONG_MAX)
2879+
if (n < 0 || n > (double)LLONG_MAX)
2880+
#else
2881+
if (n < 0 || n > (double)LONG_MAX)
2882+
#endif // OFF_MAX
28772883
{
28782884
cupsdLogMessage(CUPSD_LOG_ERROR, "Bad size value for %s on line %d of %s.", line, linenum, filename);
28792885
return (0);

0 commit comments

Comments
 (0)