rb07
Joined: 31 May 2009 Posts: 8
|
Posted: Sun May 31, 2009 1:21 am Post subject: [patch] Support for Cygwin |
|
|
I built Transmission (1.61) which includes libnatpmp-20090310, the following patch was necessary:
Code: | diff -Nau getgateway.c.orig getgateway.c
--- getgateway.c.orig 2009-05-14 20:32:39.796875000 -0500
+++ getgateway.c 2009-05-15 14:13:01.906250000 -0500
@@ -56,6 +56,17 @@
#define USE_WIN32_CODE
#endif
+#ifdef __CYGWIN__
+#undef USE_PROC_NET_ROUTE
+#undef USE_SOCKET_ROUTE
+#undef USE_SYSCTL_NET_ROUTE
+#define USE_WIN32_CODE
+#include <stdarg.h>
+#include <w32api/windef.h>
+#include <w32api/winbase.h>
+#include <w32api/winreg.h>
+#endif
+
#ifdef USE_SYSCTL_NET_ROUTE
#include <stdlib.h>
#include <sys/sysctl.h>
|
The original Makefile is not used, so I won't submit a patch, but taking a quick glance I can say it needs patching also (lib*.so is *.dll) but since there seems to be MinGW stuff all over then its probably taken care of. _________________ R.B. |
|