added i686 support and profile for t-vision s100
[openwrt.git] / toolchain / uClibc / patches / 301-fix-getrusage-argument-type.patch
1 Subject: [PATCH] Fix getrusage argument type
2
3 The first argument to getrusage is of type __rusage_who_t, not int.
4 This patch fixes that.
5 ---
6
7 libc/sysdeps/linux/common/getrusage.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 Index: uClibc-0.9.28/libc/sysdeps/linux/common/getrusage.c
11 ===================================================================
12 --- uClibc-0.9.28.orig/libc/sysdeps/linux/common/getrusage.c 2006-02-07 17:18:22.000000000 +0100
13 +++ uClibc-0.9.28/libc/sysdeps/linux/common/getrusage.c 2006-02-07 17:18:31.000000000 +0100
14 @@ -10,4 +10,4 @@
15 #include "syscalls.h"
16 #include <unistd.h>
17 #include <wait.h>
18 -_syscall2(int, getrusage, int, who, struct rusage *, usage);
19 +_syscall2(int, getrusage, __rusage_who_t, who, struct rusage *, usage);
This page took 0.05027 seconds and 5 git commands to generate.