This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?

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.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]