io/lockf: Include bits/types.h before __OFF_T_MATCHES_OFF64_T check
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 25 Aug 2020 18:15:27 +0000 (11:15 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 27 Aug 2020 15:17:13 +0000 (08:17 -0700)
commitfda4d81801e9d972c029fb4ed1162b960eb540b5
treed70365976876d116784c094766eee3c55e63150c
parent9bd8e3f99d00fc578b8db0a9d61e59e84bbb6b0a
io/lockf: Include bits/types.h before __OFF_T_MATCHES_OFF64_T check

It's possible that although __OFF_T_MATCHES_OFF64_T is defined the
included the relevent header file.  This results in a io/tst-lockf
failure for RV32 by calling the non 64-bit version of lockf.  This
patch fixes the failure by including bits/types.h.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
io/lockf.c