This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

missing libc_hidden_proto() declarations?


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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]