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 

if_indextoname on WinXP

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
Hazard



Joined: 21 Jan 2010
Posts: 2

PostPosted: Mon Nov 05, 2012 6:46 pm    Post subject: if_indextoname on WinXP Reply with quote

I'm building some software on Win7 that uses miniupnpc, but noticed that it fails under XP because it can't find the symbol if_indextoname, which is only supported on Vista and later.

Ideally I'd like to add a single define or config option or something in order to have the same binary run on XP. I hacked something together by doing this:
#undef IF_NAMESIZE

under all the includes in miniupnpc.c. It seems to work.

What's a better way to do this?

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation 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.