This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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] Fix mips N32 build


The patch below is needed for a mips N32 build of the glibc.

2008-03-15  Aurelien Jarno  <aurelien@aurel32.net>

	* sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: Drop ftruncate
	declaration.

2008-01-24  Aurelien Jarno  <aurelien@aurel32.net>

	* sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: Drop truncate
	declaration.
	(truncate64): Fix arguments and call to truncate.

Index: ftruncate64.c
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 ftruncate64.c
--- ports/sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c	5 Apr 2003 19:57:35 -0000	1.1
+++ ports/sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c	15 Mar 2008 13:43:41 -0000
@@ -20,8 +20,6 @@
 
 #include <sysdep.h>
 
-extern int ftruncate (int fd, off64_t length);
-
 int __ftruncate64 (int fd, off64_t length) {
   return ftruncate (fd, length);
 }
Index: truncate64.c
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 truncate64.c
--- ports/sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c	5 Apr 2003 19:57:35 -0000	1.1
+++ ports/sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c	15 Mar 2008 13:43:41 -0000
@@ -21,10 +21,7 @@
 #include <sysdep.h>
 #include <bp-checks.h>
 
-extern int truncate (const char *__unbounded path, int dummy,
-		     off64_t length);
-
-int truncate64 (const char *__unbounded path, int dummy,
-		off64_t length) {
-  return truncate (path, dummy, length);
+int __truncate64 (const char *file, off64_t length) {
+  return truncate (file, length);
 }
+weak_alias (__truncate64, truncate64)

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net


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