patches/strace/4.5.17/130-fix-disabled-largefile-syscalls.patch
changeset 974 e298ce9ba8fe
parent 747 d3e603e7c17c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/strace/4.5.17/130-fix-disabled-largefile-syscalls.patch	Sat Oct 25 15:44:05 2008 +0000
     1.3 @@ -0,0 +1,26 @@
     1.4 +Original patch from gentoo: ../../dev/crosstool-NG/ct-ng.trunk/patches/strace/4.5.17/130-fix-disabled-largefile-syscalls.patch
     1.5 +-= BEGIN original header =-
     1.6 +diff -dur strace-4.5.16.orig/syscall.c strace-4.5.16/syscall.c
     1.7 +-= END original header =-
     1.8 +diff -durN strace-4.5.17.orig/syscall.c strace-4.5.17/syscall.c
     1.9 +--- strace-4.5.17.orig/syscall.c	2008-10-24 21:30:13.000000000 +0200
    1.10 ++++ strace-4.5.17/syscall.c	2008-10-24 21:30:13.000000000 +0200
    1.11 +@@ -125,6 +125,18 @@
    1.12 + #define TP TRACE_PROCESS
    1.13 + #define TS TRACE_SIGNAL
    1.14 + 
    1.15 ++#ifndef HAVE_STATFS64
    1.16 ++/*
    1.17 ++ * Ugly hacks for systems that do not have LFS
    1.18 ++ */
    1.19 ++
    1.20 ++#define sys_truncate64  sys_truncate
    1.21 ++#define sys_ftruncate64 sys_ftruncate
    1.22 ++#define sys_getdents64  sys_getdents
    1.23 ++#define sys_statfs64    sys_statfs
    1.24 ++#define sys_fstatfs64   sys_fstatfs
    1.25 ++#endif
    1.26 ++
    1.27 + static const struct sysent sysent0[] = {
    1.28 + #include "syscallent.h"
    1.29 + };