0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-11 10:55:36 +00:00
Files
termux-packages/root-packages/lvm2/lib-device-device_id.c.patch
2025-02-28 19:20:29 +05:30

14 lines
497 B
Diff

--- a/lib/device/device_id.c
+++ b/lib/device/device_id.c
@@ -1605,6 +1605,10 @@
/* Remove the n oldest files by sorting system.devices-*. */
setlocale(LC_COLLATE, "C"); /* Avoid sorting by locales */
+ #ifndef HAVE_VERSIONSORT
+ /* fallback to alphasort when versionsort is not defined */
+ #define versionsort alphasort
+ #endif /* !HAVE_VERSIONSORT */
sort_count = scandir(dirpath, &namelist, _filter_backup_files, versionsort);
setlocale(LC_COLLATE, "");
if (sort_count < 0) {