mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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);
|
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 */
|
/* Use versionsort to handle numbers beyond 5 digits */
|
||||||
if ((count = scandir(dir, &dirent, NULL, versionsort)) < 0) {
|
if ((count = scandir(dir, &dirent, NULL, versionsort)) < 0) {
|
||||||
log_error("Couldn't scan the archive directory (%s).", dir);
|
log_error("Couldn't scan the archive directory (%s).", dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user