Util-Linux Archive mirror
 help / color / mirror / Atom feed
From: Markus Mayer <mmayer@broadcom.com>
To: util-linux mailing list <util-linux@vger.kernel.org>
Cc: Markus Mayer <mmayer@broadcom.com>
Subject: [PATCH 0/2] Improved libmount configure checks
Date: Tue,  1 Aug 2023 12:59:25 -0700	[thread overview]
Message-ID: <20230801195927.43090-1-mmayer@broadcom.com> (raw)

To increase compatibility and prevent avoidable build errors, add two
explicit configure checks that allow libmount to successfully build in
more diverse environments rather than producing compiler errors in those
situations.

This applies to:
    - cross compiling
    - using older kernel headers (e.g. 4.9)
    - using alternate C libraries (e.g. musl)

Markus Mayer (2):
  libmount: check for linux/mount.h
  libmount: check for struct statx

 configure.ac              | 9 +++++++++
 include/fileutils.h       | 2 +-
 include/mount-api-utils.h | 4 ++--
 libmount/src/hook_idmap.c | 4 ++--
 libmount/src/hooks.c      | 2 +-
 libmount/src/utils.c      | 2 +-
 libmount/src/version.c    | 2 +-
 7 files changed, 17 insertions(+), 8 deletions(-)

-- 
2.40.1


             reply	other threads:[~2023-08-01 19:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-01 19:59 Markus Mayer [this message]
2023-08-01 19:59 ` [PATCH 1/2] libmount: check for linux/mount.h Markus Mayer
2023-08-01 19:59 ` [PATCH 2/2] libmount: check for struct statx Markus Mayer
2023-08-03 10:16 ` [PATCH 0/2] Improved libmount configure checks Karel Zak

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=20230801195927.43090-1-mmayer@broadcom.com \
    --to=mmayer@broadcom.com \
    --cc=util-linux@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).