From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - make: build without versionsort
Date: Mon, 27 Sep 2021 16:57:52 +0000 (GMT) [thread overview]
Message-ID: <20210927165752.272AA385840B@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=dab4acb8f8b379f27bdd5cd2f9014385948cdcc0
Commit: dab4acb8f8b379f27bdd5cd2f9014385948cdcc0
Parent: df70dca995e5593e27e13cf00311d961b4def0e2
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Fri Sep 24 23:04:37 2021 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
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(+)
diff --git a/lib/format_text/archive.c b/lib/format_text/archive.c
index 1528cb173..103b0608d 100644
--- a/lib/format_text/archive.c
+++ b/lib/format_text/archive.c
@@ -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);
reply other threads:[~2021-09-27 16:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210927165752.272AA385840B@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.