#define PATH_MAX 1024
#endif
+#ifndef SIZE_MAX
+#define SIZE_MAX ((size_t)-1)
+#endif
+
/*%
* Check an operation for failure. Assumes that the function
* using it has a 'result' variable and a 'cleanup' label.
"%" ISC_PRINT_QUADFORMAT "u' "
"is too large for this "
"system; reducing to %lu",
- value, SIZE_MAX);
+ value, (unsigned long)SIZE_MAX);
value = SIZE_MAX;
}
- max_cache_size = (size_t) value;
+ max_acache_size = (size_t) value;
}
dns_acache_setcachesize(view->acache, max_acache_size);
}
"%" ISC_PRINT_QUADFORMAT "u' "
"is too large for this "
"system; reducing to %lu",
- value, SIZE_MAX);
+ value, (unsigned long)SIZE_MAX);
value = SIZE_MAX;
}
max_cache_size = (size_t) value;