missing libc_hidden_proto() declarations?

Jakub Jelinek jakub@redhat.com
Tue Jan 14 07:16:00 GMT 2003


On Mon, Jan 13, 2003 at 10:57:55PM -0800, David Mosberger wrote:
> I had to declare if_nametoindex() and if_indextoname() with
> libc_hidden_proto() to get libc to compile on ia64 linux (with
> gcc-pre3.4).  Since this seems to work for others, perhaps I'm doing
> something wrong?

libc/include/net/if.h has:
#ifndef _NET_IF_H

# include_next <net/if.h>

libc_hidden_proto (if_nametoindex)
libc_hidden_proto (if_indextoname)

#endif

which should take care of this.
So you should investigate why include/net/if.h has not been included.

	Jakub



More information about the Libc-hacker mailing list