]> granicus.if.org Git - strace/commit
tests/struct_flock.c: fix musl libc compilation warnings
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 12 Jan 2016 00:02:56 +0000 (00:02 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 12 Jan 2016 03:07:38 +0000 (03:07 +0000)
commit2165a359fd1ba85294f99e7f8799c11b2a1540a3
tree4b1c2926a59d7bb618ad6645143838cbf933044d
parent4776e3366f7e57c83fb1c275f601291b84e5d63e
tests/struct_flock.c: fix musl libc compilation warnings

The size of off_t is not something one can rely upon.  For example,
musl libc unconditionally defines it as an int64_t type on x86.
A cast to the target type helps to avoid these libc differences.

* configure.ac: Call AC_C_TYPEOF.
* tests/struct_flock.c (TYPEOF_FLOCK_OFF_T): New macro.
(test_flock_einval): Use it instead of off_t.
configure.ac
tests/struct_flock.c