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]

[PATCH] weak_alias fixes


Hi!

Recently added macro indirection causes trouble with sysconf and getpt
(because e.g. on linux getpt is weak alias to __bsd_getpt, not __getpt as it
used to be and should be).
Following patch should fix it:

2000-07-13  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
	* sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.

--- libc/sysdeps/posix/sysconf.c.jj	Thu Apr 13 05:06:46 2000
+++ libc/sysdeps/posix/sysconf.c	Thu Jul 13 17:08:05 2000
@@ -1091,4 +1091,5 @@ __sysconf (name)
     }
 }
 
+#undef __sysconf
 weak_alias (__sysconf, sysconf)
--- libc/sysdeps/unix/bsd/getpt.c.jj	Tue Jan  4 11:11:59 2000
+++ libc/sysdeps/unix/bsd/getpt.c	Thu Jul 13 17:09:25 2000
@@ -74,4 +74,6 @@ __getpt (void)
   __set_errno (ENOENT);
   return -1;
 }
+
+#undef __getpt
 weak_alias (__getpt, getpt)

	Jakub

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