From: Samuel Thibault <sthibault@debian.org>
To: Jeff Epler <jepler@unpythonic.net>
Cc: LaMont Jones <lamont@debian.org>,
Roger Leigh <rleigh@codelibre.net>,
util-linux@vger.kernel.org
Subject: Re: Enable findmnt on kfreebsd
Date: Thu, 14 Mar 2013 02:06:20 +0100 [thread overview]
Message-ID: <20130314010620.GI5867@type.youpi.perso.aquilenet.fr> (raw)
In-Reply-To: <20130314003946.GB4068@unpythonic.net>
Jeff Epler, le Wed 13 Mar 2013 19:39:47 -0500, a écrit :
> --- util-linux-2.20.1.orig/libmount/src/context_umount.c
> +++ util-linux-2.20.1/libmount/src/context_umount.c
> @@ -439,6 +439,9 @@
> /* Check whether the kernel supports UMOUNT_NOFOLLOW flag */
> static int umount_nofollow_support(void)
> {
> +#ifdef __FreeBSD_kernel__
> + return 0;
> +#else
> int res = umount2("", UMOUNT_UNUSED);
> if (res != -1 || errno != EINVAL)
> return 0;
> @@ -448,10 +451,14 @@
> return 0;
>
> return 1;
> +#endif
Perhaps rather turn all these into
#ifdef __linux__
linux stuff
#else
return 0;
#endif
?
Samuel
next prev parent reply other threads:[~2013-03-14 1:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 0:39 Enable findmnt on kfreebsd Jeff Epler
2013-03-14 1:06 ` Samuel Thibault [this message]
2013-03-14 2:02 ` Jeff Epler
2013-03-14 2:39 ` Samuel Thibault
2013-03-14 10:22 ` 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=20130314010620.GI5867@type.youpi.perso.aquilenet.fr \
--to=sthibault@debian.org \
--cc=jepler@unpythonic.net \
--cc=lamont@debian.org \
--cc=rleigh@codelibre.net \
--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