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


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

PATCH: Does glibc build for ia64?


On Fri, Mar 26, 2004 at 11:51:57AM -0800, H. J. Lu wrote:
> I got
> 
> ../sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: In function `__fxstat':
> ../sysdeps/unix/sysv/linux/wordsize-64/fxstat.c:38: error: invalid use of
> undefined type `struct kernel_stat'
> make[4]: *** [/export/build/gnu/glibc-nptl/build-ia64-linux/io/fxstat.os] Error
> 1
> 
> The new file uses "struct kernel_stat" while the old one doesn't.
> 
> 

This patch works for me.



H.J.
----
2004-03-26  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/unix/sysv/linux/wordsize-64/fxstat.c (__fxstat): Don't
	use "struct kernel_stat".

--- sysdeps/unix/sysv/linux/wordsize-64/fxstat.c.64	2004-03-23 15:25:53.000000000 -0800
+++ sysdeps/unix/sysv/linux/wordsize-64/fxstat.c	2004-03-26 11:53:08.000000000 -0800
@@ -35,7 +35,7 @@ int
 __fxstat (int vers, int fd, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
-    return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 (buf));
 
   __set_errno (EINVAL);
   return -1;


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