[PATCH] weak_alias fixes
Jakub Jelinek
jakub@redhat.com
Thu Jul 13 14:16:00 GMT 2000
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
More information about the Libc-hacker
mailing list