Skip to content
Snippets Groups Projects
Commit 737f707b authored by Edric Milaret's avatar Edric Milaret
Browse files

windows: support 64bit builds

- This patch allow us to build 64bits version of
the daemon (and thanks to that LRC and client too)
- We should essentially gain performance in CPU intensive task
like video processing

Depends on yaml-cpp bump that fix x64 mingw compilation

Change-Id: I32c7bafba0eddfa8a6779e1c13bde2ea56bf904b
Tuleap: #387
parent 40a0a498
Branches
Tags
No related merge requests found
......@@ -29,6 +29,10 @@ endif
PJPROJECT_EXTRA_CFLAGS = -DPJ_ICE_MAX_CAND=32 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2
ifdef HAVE_WIN64
PJPROJECT_EXTRA_CFLAGS += -DPJ_WIN64=1
endif
PKGS += pjproject
# FIXME: nominally 2.2.0 is enough, but it has to be patched for gnutls
ifeq ($(call need_pkg,'libpjproject'),)
......
......@@ -18,6 +18,9 @@ ifdef HAVE_WIN32
$(APPLY) $(SRC)/upnp/libupnp-win32.patch
$(APPLY) $(SRC)/upnp/libupnp-win64.patch
$(APPLY) $(SRC)/upnp/threadpool.patch
endif
ifdef HAVE_WIN64
$(APPLY) $(SRC)/upnp/win_inet_pton.patch
endif
$(APPLY) $(SRC)/upnp/libupnp-ipv6.patch
$(APPLY) $(SRC)/upnp/miniserver.patch
......
--- a/upnp/src/inet_pton.c 2013-11-15 11:10:05.000000000 -0500
+++ b/upnp/src/inet_pton.c 2016-02-16 13:21:03.963801774 -0500
@@ -304,20 +304,7 @@
/* NOTREACHED */
}
-int inet_pton(int af, const char *src, void *dst)
-{
- switch (af) {
- case AF_INET:
- return inet_pton4(src, dst);
-#ifdef INET_IPV6
- case AF_INET6:
- return inet_pton6(src, dst);
-#endif
- default:
- /*__set_errno(EAFNOSUPPORT);*/
- return -1;
- }
- /* NOTREACHED */
-}
+#define InetPtonA inet_pton
+WINSOCK_API_LINKAGE INT WSAAPI InetPtonA(INT Family, LPCSTR pStringBuf, PVOID pAddr);
#endif /* WIN32 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment