strace-fix-disabled-largefile-syscalls.patch 457 B

123456789101112131415161718192021
  1. --- a/syscall.c
  2. +++ b/syscall.c
  3. @@ -125,6 +125,18 @@
  4. #define TP TRACE_PROCESS
  5. #define TS TRACE_SIGNAL
  6. +#ifndef HAVE_STATFS64
  7. +/*
  8. + * Ugly hacks for systems that do not have LFS
  9. + */
  10. +
  11. +#define sys_truncate64 sys_truncate
  12. +#define sys_ftruncate64 sys_ftruncate
  13. +#define sys_getdents64 sys_getdents
  14. +#define sys_statfs64 sys_statfs
  15. +#define sys_fstatfs64 sys_fstatfs
  16. +#endif
  17. +
  18. static const struct sysent sysent0[] = {
  19. #include "syscallent.h"
  20. };