Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1366088
| From | Ruediger Meier <sweet_f_a@gmx.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [ANNOUNCE] util-linux v2.28-rc2 |
| Date | 2016-03-29 12:00 +0200 |
| Message-ID | <rhYBm-4ad-45@gated-at.bofh.it> (permalink) |
| References | <rhXYC-3S8-7@gated-at.bofh.it> <rhYrD-46p-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[ANNOUNCE] util-linux v2.28-rc2 Karel Zak <kzak@redhat.com> - 2016-03-29 11:20 +0200
Re: [ANNOUNCE] util-linux v2.28-rc2 Samuel Thibault <samuel.thibault@ens-lyon.org> - 2016-03-29 11:50 +0200
Re: [ANNOUNCE] util-linux v2.28-rc2 Ruediger Meier <sweet_f_a@gmx.de> - 2016-03-29 12:00 +0200
csiph-web