Hazard
Joined: 21 Jan 2010 Posts: 2
|
Posted: Mon Nov 05, 2012 6:46 pm Post subject: if_indextoname on WinXP |
|
|
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! |
|