mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
make: build without versionsort
Reported-by: adamboardman of gemian
This commit is contained in:
parent
df70dca995
commit
dab4acb8f8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user