CVS 20030612 fail to build for alpha.
Guido Guenther
agx@sigxcpu.org
Tue Jun 17 14:42:00 GMT 2003
On Tue, Jun 17, 2003 at 12:07:27AM -0400, Balint Cristian wrote:
> Hi !
>
> I tryed to build up glibc-2.3.2-51.src.rpm (RH rawhide one), as CVS is glibc-2.3.2 from 20030612 date.
>
Attached is what I'm currently using on mips to get it to build again.
The fix for alpha should be very similar. I'm not sure if this is
entirely correct though, testsuite is still running.
-- Guido
-------------- next part --------------
2003-06-17 Guido Guenther <agx@sigxcpu.org>
* sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
case.
(xstat_conv): Rename to __xstat_conv and remove static inline.
(xstat64_conv): Likewise.
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/xstatconv.c,v
retrieving revision 1.3
diff -u -p -u -r1.3 xstatconv.c
--- sysdeps/unix/sysv/linux/mips/xstatconv.c 6 Jul 2001 04:56:18 -0000 1.3
+++ sysdeps/unix/sysv/linux/mips/xstatconv.c 17 Jun 2003 14:30:19 -0000
@@ -17,11 +17,21 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-#include <string.h>
+#include <errno.h>
+#include <sys/stat.h>
+#include <kernel_stat.h>
+
+#ifdef STAT_IS_KERNEL_STAT
+
+/* Dummy. */
+struct kernel_stat;
+
+#else
+#include <string.h>
-static inline int
-xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
+int
+__xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
{
switch (vers)
{
@@ -70,8 +80,8 @@ xstat_conv (int vers, struct kernel_stat
return 0;
}
-static inline int
-xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
+int
+__xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
{
#ifdef XSTAT_IS_XSTAT64
return xstat_conv (vers, kbuf, ubuf);
@@ -118,3 +128,6 @@ xstat64_conv (int vers, struct kernel_st
return 0;
#endif
}
+
+#endif /* ! STAT_IS_KERNEL_STAT */
+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030617/0a8e6c98/attachment.sig>
More information about the Libc-alpha
mailing list