main - make: build without versionsort
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=dab4acb8f8b379f27bdd5cd2f9014385948cdcc0 Commit: dab4acb8f8b379f27bdd5cd2f9014385948cdcc0 Parent: df70dca995e5593e27e13cf00311d961b4def0e2 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Sep 24 23:04:37 2021 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Sep 27 18:56:14 2021 +0200
make: build without versionsort
Reported-by adamboardman of gemian
--- lib/format_text/archive.c | 4 ++++ 1 file changed, 4 insertions(+)
lib/format_text/archive.c +4 -0
@@ -135,6 +135,10 @@ static struct dm_list *_scan_archive(struct dm_pool *mem,dm_list_init (results); +#ifndef HAVE_VERSIONSORT +/* fallback to alphasort when versionsort is not defined */ +#define versionsort alphasort +#endif /* !HAVE_VERSIONSORT */ /* Use versionsort to handle numbers beyond 5 digits */ if ((count =scandir (dir, &dirent,NULL , versionsort)) <0 ) {log_error ("Couldn't scan the archive directory (%s)." , dir);