missing libc_hidden_proto() declarations?

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


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?

	--david

2003-01-13  David Mosberger  <davidm@hpl.hp.com>

	* sysdeps/gnu/net/if.h (if_nametoindex): Mark as libc_hidden_proto.
	(if_indextoname): Likewise.

Index: sysdeps/gnu/net/if.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/gnu/net/if.h,v
retrieving revision 1.5
diff -u -r1.5 if.h
--- sysdeps/gnu/net/if.h	6 Jul 2001 04:55:51 -0000	1.5
+++ sysdeps/gnu/net/if.h	14 Jan 2003 06:46:50 -0000
@@ -192,6 +192,9 @@
 extern unsigned int if_nametoindex (__const char *__ifname) __THROW;
 extern char *if_indextoname (unsigned int __ifindex, char *__ifname) __THROW;
 
+libc_hidden_proto (if_nametoindex);
+libc_hidden_proto (if_indextoname);
+
 /* Return a list of all interfaces and their indices.  */
 extern struct if_nameindex *if_nameindex (void) __THROW;
 



More information about the Libc-hacker mailing list