patch-desc_c 664 B

1234567891011121314151617181920212223
  1. --- strace-4.8.orig/desc.c 2013-05-02 00:39:10.000000000 +0200
  2. +++ strace-4.8/desc.c 2014-03-01 19:44:21.000000000 +0100
  3. @@ -223,7 +223,7 @@ static const struct xlat perf_event_open
  4. { 0, NULL },
  5. };
  6. -#if _LFS64_LARGEFILE
  7. +#if defined(_LFS64_LARGEFILE) && defined(__GLIBC__) || defined(__UCLIBC__)
  8. /* fcntl/lockf */
  9. static void
  10. printflock64(struct tcb *tcp, long addr, int getlk)
  11. @@ -255,7 +255,11 @@ printflock(struct tcb *tcp, long addr, i
  12. #if SUPPORTED_PERSONALITIES > 1
  13. # ifdef X32
  14. if (current_personality == 0) {
  15. +#if defined(__GLIBC__)
  16. printflock64(tcp, addr, getlk);
  17. +#else
  18. + printflock(tcp, addr, getlk);
  19. +#endif
  20. return;
  21. }
  22. # endif