rb07
Joined: 31 May 2009 Posts: 8
|
Posted: Mon Apr 09, 2012 10:54 pm Post subject: Ver. 1.6.20120320 doesn't build on Cygwin |
|
|
Hi,
The following change is needed to build miniupnpc on Cygwin (building the library as part of Transmission, version 1.6.20120320 included with Transmission 2.51):
Code: | --- miniupnpc.c.orig 2012-04-09 17:51:49.640625000 -0500
+++ miniupnpc.c 2012-04-09 17:47:25.906250000 -0500
@@ -17,7 +17,7 @@
#endif
#endif
-#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(MACOSX) && !defined(_WIN32)
+#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(MACOSX) && !defined(_WIN32) && !defined(__CYGWIN__)
/* miniupnpc's unmodified source says _BSD_SOURCE or _GNU_SOURCE is needed
for struct ip_mreqn... since the above #if chain rules out the former,
use the latter here */
|
_________________ R.B. |
|