Mats Erik Andersson wrote: > In OpenBSD (definitely in 4.6) there is a POSIX violation, > quoting Simon here, since the header file states > > ### /usr/include/net/if.h > > #define if_freenameindex(x) free(x) > > This macro causes difficulties ...
Indeed, according to POSIX:2008 [1], a macro may be provided by the system, but the function needs to be provided as well. Bruno [1] http://www.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_01_01