This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix build breakage on MinGW due to missing setenv
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Anton Kolesov <Anton dot Kolesov at synopsys dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Francois Bedard <Francois dot Bedard at synopsys dot com>, Sergio Durigan Junior <sergiodj at redhat dot com>
- Date: Mon, 3 Jul 2017 12:21:02 +0100
- Subject: Re: [PATCH] Fix build breakage on MinGW due to missing setenv
- Authentication-results: sourceware.org; auth=none
- References: <20170703100258.15837-1-Anton.Kolesov@synopsys.com>
On Mon, Jul 3, 2017 at 11:02 AM, Anton Kolesov
<Anton.Kolesov@synopsys.com> wrote:
> Patch [1] broke a build on MinGW hosts, because MinGW doesn't provide POSIX
> functions setenv () and unsetenv (), instead there is a putenv () wrapper
> around WinAPI function, although with a different signature.
>
> [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=9a6c7d9c0
The better fix, IMO, is to use setenv and unsetenv
module in gnulib. However, I didn't check gnulib
manual about portability problems not fixed by gnulib.
--
Yao (齐尧)