summaryrefslogtreecommitdiff
path: root/src/muc-channel.c
diff options
context:
space:
mode:
authorSiraj Razick <siraj.razick@collabora.co.uk>2012-01-02 13:12:08 -0500
committerJonny Lamb <jonny.lamb@collabora.co.uk>2012-01-03 10:59:25 +0000
commitb5bc31a5084e05d7e4251a37f628f7835928ab1c (patch)
tree19f8c58a77944bf429e8841bc4a31ec1d56a501f /src/muc-channel.c
parent3cdfbe659bbe3a7e217486c2b0a957880b3c24ea (diff)
downloadtelepathy-gabble-b5bc31a5084e05d7e4251a37f628f7835928ab1c.tar.gz
Make gabble cross compile with mingw32
The patch provides the changes required to make gabble compile under mingw32. - Index is replaced with strchr since index is deprecated and not included in mingw32 sdk - D_WIN32_WINNT=0x0501 is defined to make getnameinfo work - And other compile fixes
Diffstat (limited to 'src/muc-channel.c')
-rw-r--r--src/muc-channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/muc-channel.c b/src/muc-channel.c
index f7022a1c1..354dbde7d 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -1557,7 +1557,7 @@ handle_nick_conflict (GabbleMucChannel *chan,
*/
g_assert (from != NULL);
- if (index (from, '/') != NULL && tp_strdiff (from, priv->self_jid->str))
+ if (strchr (from, '/') != NULL && tp_strdiff (from, priv->self_jid->str))
{
DEBUG ("ignoring spurious conflict message for %s", from);
return TRUE;