Re: [gdb-7.5.91] mips sim fails to build on mingw32

Mike Frysinger
2013-03-27T17:00:46Z

[-- Attachment #1: Type: Text/Plain, Size: 899 bytes --]

On Wednesday 27 March 2013 07:20:23 Pedro Alves wrote:
> On 03/17/2013 04:05 PM, Joel Sherrill wrote:
> > + # mingw32 does not support sockser
> > + SIM_DV_SOCKSER_O=""
> > + case ${host} in
> > + *mingw32*) ;;
> > + *) SIM_DV_SOCKSER_O="dv-sockser.o"
> > + AC_DEFINE_UNQUOTED(
> > + [HAVE_DV_SOCKSER], 1, [Define if dv-sockser is usable.])
> > + ;;
> > + esac
> > + AC_SUBST(SIM_DV_SOCKSER_O)
> >
> > fi
>
> OOC, is there a fundamental reason dv-sockser.o couldn't
> be made to work on mingw, or is it that nobody has bothered yet?

the last part one

> I skimmed the file and it just looked like straight socket stuff, which
> usually means that porting to mingw just revolves around including
> windows.h/winsock2.h and using send/recv/closesocket instead of bsd
> style read/write/close, etc.

is there a gnulib module already ?
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]