301-fix-getrusage-argument-type.patch 771 B

12345678910111213141516171819
  1. Subject: [PATCH] Fix getrusage argument type
  2. The first argument to getrusage is of type __rusage_who_t, not int.
  3. This patch fixes that.
  4. ---
  5. libc/sysdeps/linux/common/getrusage.c | 2 +-
  6. 1 file changed, 1 insertion(+), 1 deletion(-)
  7. Index: uClibc-0.9.28/libc/sysdeps/linux/common/getrusage.c
  8. ===================================================================
  9. --- uClibc-0.9.28.orig/libc/sysdeps/linux/common/getrusage.c 2006-02-07 17:18:22.000000000 +0100
  10. +++ uClibc-0.9.28/libc/sysdeps/linux/common/getrusage.c 2006-02-07 17:18:31.000000000 +0100
  11. @@ -10,4 +10,4 @@
  12. #include "syscalls.h"
  13. #include <unistd.h>
  14. #include <wait.h>
  15. -_syscall2(int, getrusage, int, who, struct rusage *, usage);
  16. +_syscall2(int, getrusage, __rusage_who_t, who, struct rusage *, usage);