missing libc_hidden_proto() declarations?

David Mosberger davidm@napali.hpl.hp.com
Tue Jan 14 07:33:00 GMT 2003


>>>>> On Tue, 14 Jan 2003 08:16:14 +0100, Jakub Jelinek <jakub@redhat.com> said:

  Jakub> On Mon, Jan 13, 2003 at 10:57:55PM -0800, David Mosberger
  Jakub> 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?

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

  Jakub> # include_next <net/if.h>

  Jakub> libc_hidden_proto (if_nametoindex) libc_hidden_proto
  Jakub> (if_indextoname)

  Jakub> #endif

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

The file include/net/if.h doesn't exist in my tree.  I'm probably
doing something wrong with cvs.  Is there a reason why "cvs update"
wouldn't pick up this (presumably new) file?

	--david



More information about the Libc-hacker mailing list