miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ver. 1.6.20120320 doesn't build on Cygwin

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
rb07



Joined: 31 May 2009
Posts: 8

PostPosted: Mon Apr 09, 2012 10:54 pm    Post subject: Ver. 1.6.20120320 doesn't build on Cygwin Reply with quote

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.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Wed Apr 11, 2012 5:49 am    Post subject: Reply with quote

Thank you for the patch
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.