return -ENOTSUP;
}
#endif /* ARCHIVE_VERSION_NUMBER >= 3007002 */
-
-#if ARCHIVE_VERSION_NUMBER >= 3006000
- // Fetch numbers of processors
- long processors = sysconf(_SC_NPROCESSORS_ONLN);
-
- if (processors > 1) {
- r = pakfire_string_format(value, "%ld", processors);
- if (r)
- return r;
-
- // Try using multiple threads
- r = archive_write_set_filter_option(self->archive, NULL, "threads", value);
- if (r) {
- ERROR(self->ctx, "Could not enable %ld threads for compression: %s\n",
- processors, archive_error_string(self->archive));
- return -ENOTSUP;
- }
- }
-#endif
break;
}