diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2014-03-03 23:09:47 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-03-03 23:30:04 +0000 |
commit | 54cabefc753cc72417bb610cb9f7873f4389e9f5 (patch) | |
tree | 9ae20bb2e5a8467c69d9d30bbf0b10db1564104d /xlate.el | |
parent | ec21e07441030009a53786905ccbeaaed5e0ee9c (diff) | |
download | strace-54cabefc753cc72417bb610cb9f7873f4389e9f5.tar.gz strace-54cabefc753cc72417bb610cb9f7873f4389e9f5.tar.bz2 strace-54cabefc753cc72417bb610cb9f7873f4389e9f5.tar.xz |
Fix fcntl decoding
Assume that F_SETLK64, F_SETLKW64, and F_GETLK64 are either defined or
not defined altogether.
Do not assume that sizeof(off_t) < sizeof(long long) when F_SETLK64 is
undefined.
This change fixes build with musl libc on x86.
* configure.ac: Define SIZEOF_OFF_T.
* desc.c (USE_PRINTFLOCK64): New macro.
(struct flock64, printflock64): Do not define on X32.
(printflock): Replace X32 specific workaround with SIZEOF_OFF_T check.
Fix printing off_t members of struct flock.
(sys_fcntl): Use USE_PRINTFLOCK64.
Diffstat (limited to 'xlate.el')
0 files changed, 0 insertions, 0 deletions