svn commit: trunk/uClibc/libc/sysdeps/linux/common
vapier at uclibc.org
vapier at uclibc.org
Sun Jan 8 11:03:49 UTC 2006
Author: vapier
Date: 2006-01-08 03:03:47 -0800 (Sun, 08 Jan 2006)
New Revision: 13158
Log:
fix building on 64bit hosts
Modified:
trunk/uClibc/libc/sysdeps/linux/common/fstat.c
trunk/uClibc/libc/sysdeps/linux/common/stat.c
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/fstat.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/fstat.c 2006-01-08 10:53:09 UTC (rev 13157)
+++ trunk/uClibc/libc/sysdeps/linux/common/fstat.c 2006-01-08 11:03:47 UTC (rev 13158)
@@ -7,6 +7,10 @@
* GNU Library General Public License (LGPL) version 2 or later.
*/
+/* need to hide the 64bit prototype or the weak_alias()
+ * will fail when __NR_fstat64 doesnt exist */
+#define __fstat64 __hide__fstat64
+
#include "syscalls.h"
#include <unistd.h>
#define _SYS_STAT_H
@@ -14,6 +18,8 @@
#include <bits/kernel_stat.h>
#include "xstatconv.h"
+#undef __fstat64
+
#define __NR___syscall_fstat __NR_fstat
#undef __fstat
#undef fstat
Modified: trunk/uClibc/libc/sysdeps/linux/common/stat.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/stat.c 2006-01-08 10:53:09 UTC (rev 13157)
+++ trunk/uClibc/libc/sysdeps/linux/common/stat.c 2006-01-08 11:03:47 UTC (rev 13158)
@@ -7,12 +7,18 @@
* GNU Library General Public License (LGPL) version 2 or later.
*/
+/* need to hide the 64bit prototype or the weak_alias()
+ * will fail when __NR_stat64 doesnt exist */
+#define __stat64 __hide__stat64
+
#include "syscalls.h"
#include <unistd.h>
#define _SYS_STAT_H
#include <bits/stat.h>
#include "xstatconv.h"
+#undef __stat64
+
#define __NR___syscall_stat __NR_stat
#undef __stat
#undef stat
More information about the uClibc-cvs
mailing list