From c9d6b2d0af8f64627cf122b191a2dd11bcd96527 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sun, 13 Jul 2014 16:08:06 -0300 Subject: [PATCH] fix mingw32 sse2 crash and assertion failure (winxp) --- configure.ac | 2 +- libtorrent/src/utp_stream.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d6634f9a..7d559909 100644 --- a/configure.ac +++ b/configure.ac @@ -531,7 +531,7 @@ AS_CASE(["$ARG_ENABLE_SSE2"], ["yes"|"on"], [ AC_MSG_RESULT([yes]) AC_DEFINE([USE_SSE2],[1],[Enable SSE2]) - CXXFLAGS="$CXXFLAGS -DUSE_SSE2 -msse2 " + CXXFLAGS="$CXXFLAGS -DUSE_SSE2 -msse2 -mstackrealign " ], ["no"|"off"], [ AC_MSG_RESULT([no]) diff --git a/libtorrent/src/utp_stream.cpp b/libtorrent/src/utp_stream.cpp index fb38f208..c6d10c49 100644 --- a/libtorrent/src/utp_stream.cpp +++ b/libtorrent/src/utp_stream.cpp @@ -2161,7 +2161,7 @@ void utp_socket_impl::ack_packet(packet* p, ptime const& receive_time rtt = 100000; // the clock for this plaform is not monotonic! - TORRENT_ASSERT(false); + //TORRENT_ASSERT(false); } UTP_LOGV("%8p: acked packet %d (%d bytes) (rtt:%u)\n"