From: Ruediger Meier <sweet_f_a@gmx.de>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: Karel Zak <kzak@redhat.com>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
util-linux@vger.kernel.org
Subject: Re: [ANNOUNCE] util-linux v2.28-rc2
Date: Tue, 29 Mar 2016 10:58:30 +0100 [thread overview]
Message-ID: <201603291158.32187.sweet_f_a@gmx.de> (raw)
In-Reply-To: <20160329094308.GA3019@var.bordeaux.inria.fr>
On Tuesday 29 March 2016, Samuel Thibault wrote:
> Hello,
>
> Karel Zak, on Tue 29 Mar 2016 11:10:12 +0200, wrote:
> > The util-linux release v2.28-rc2 is available at
> >
> > http://ftp.kernel.org/pub/linux/utils/util-linux/v2.28
> >
> > Feedback and bug reports, as always, are welcomed.
>
> The Hurd provides a BSD-compatible interface (thus defines BSD to
> something 1993-ish), but not compatible with more recent BSDs.
> setprogname appeared around 2004 and such. The patch below just
> detects the availability.
>
> Samuel
>
>
> diff --git a/configure.ac b/configure.ac
> index 1519c97..9502d84 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -380,6 +380,7 @@ AC_CHECK_FUNCS([ \
> qsort_r \
> rpmatch \
> scandirat \
> + setprogname \
> setresgid \
> setresuid \
> sched_setattr \
> diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c
> index c4144f6..1efae07 100644
> --- a/misc-utils/getopt.c
> +++ b/misc-utils/getopt.c
> @@ -453,7 +453,7 @@ int main(int argc, char *argv[])
>
> if (name) {
> argv[optind - 1] = name;
> -#if defined (BSD) || defined (__APPLE__)
> +#if (defined (BSD) || defined (__APPLE__)) && defined (HAVE_SETPROGNAME)
Then I would simply use only
#if defined (HAVE_SETPROGNAME)
or, to be 105% sure to avoid any side effects on our "normal" Linux target
#if defined (HAVE_SETPROGNAME) && ! defined __linux__
> setprogname(name);
> #endif
> } else
> --
> To unsubscribe from this list: send the line "unsubscribe util-linux"
> in the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2016-03-29 9:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-29 9:10 Karel Zak
2016-03-29 9:43 ` Samuel Thibault
2016-03-29 9:58 ` Ruediger Meier [this message]
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=201603291158.32187.sweet_f_a@gmx.de \
--to=sweet_f_a@gmx.de \
--cc=kzak@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=samuel.thibault@ens-lyon.org \
--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
all inboxes | Powered by JetHome®