[PATCH][PR build/23568] Fix gdb-7.12.1 MinGW/MSYS build issue
Eli Zaretskii
eliz@gnu.org
Wed Aug 29 16:19:00 GMT 2018
> Date: Wed, 29 Aug 2018 11:50:43 -0400
> From: Simon Marchi <simon.marchi@polymtl.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>, Pedro Alves <palves@redhat.com>,
> gdb-patches@sourceware.org
>
> > ser-mingw.c:368:30: error: 'ERROR_IO_PENDING' was not declared in this
> > scope
> > Â Â Â Â Â Â if (GetLastError () != ERROR_IO_PENDING
> > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^~~~~~~~~~~~~~~~
> > make[2]: *** [ser-mingw.o] Error 1
>
> If this constant is supposed to be defined in the win32 API but is
> missing with mingw, could it be that it's more of a mingw bug, and it
> should be fixed there?
It is not a MinGW bug: this constant is defined in winerror.h that
comes with MinGW's w32api package.
The problem seems to be that winerror.h somehow doesn't get included
in that source file, neither directly nor indirectly. I will try to
look into it some time soon.
More information about the Gdb-patches
mailing list