> I did earlier propose a correct solution for Inetutils, but Simon > rejected the unavoidable preprocessor conditionals.
Alfred, feel free to apply this meanwhile if you think it is good. We can clean up the code when if_freenameindex is portably supported by gnulib. Applied. 2010-10-31 Mats Erik Andersson <addr...@hidden> * ifconfig/if_index.c (if_nametoindex, if_freenameindex) (if_nameindex): Provide functions only if HAVE_STRUCT_IF_NAMEINDEX isn't defined.