[Bug 24395] Issues making telepathy-gabble 0.8.3 work on windows

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 28 09:27:40 CET 2009


http://bugs.freedesktop.org/show_bug.cgi?id=24395


Matti Reijonen <matti.reijonen at evocativi.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon.mcvittie at collabora.co.
                   |                            |uk




--- Comment #12 from Matti Reijonen <matti.reijonen at evocativi.com>  2009-10-28 01:27:38 PST ---
(In reply to comment #9)

Hi, I'm attaching here patches against portability branch, i did not patch the
configure.ac because i dont know the syntax good enough, but it probably should
have some check for ioctl and fcntl and ioctlsocket functions and then when
needed: AC_DEFINE(fcntl,ioctlsocket)
checks for all those headers:
AC_CHECK_HEADERS([sys/socket.h],[sys/un.h],[netdb.h],[winsock2.h],[ws2tcpip.h],[Windows.h],[Winbase.h],
[netinet/in.h], [arpa/nameser.h], [resolv.h], [Windns.h])
also probably should have checks for these methods:
res_query, DnsQuery_A
When including winsock2.h the interface and ERROR keywords needs to be
undef:ed.
Anyway the config.h generated by configure.ac for window should contain these
definitons:
/* WIN32 STUFF */
#define HAVE_WINSOCK2_H
#define HAVE_WS2TCPIP_H
#define HAVE_DNSQUERY_A
#define HAVE_WINDNS_H

/* ioctl */
#define ioctl ioctlsocket
#define fcntl ioctlsocket
#define F_SETFL FIONBIO
#define O_NONBLOCK 1
#define EAFNOSUPPORT    WSAEAFNOSUPPORT
#define EADDRINUSE              WSAEADDRINUSE

The first patch contains modifications to existing changes to portability
branch and second adds 2 files containing structs and types i failed to find in
windows.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the telepathy-bugs mailing list