From: Alistair Francis Date: Tue, 25 Aug 2020 18:15:27 +0000 (-0700) Subject: io/lockf: Include bits/types.h before __OFF_T_MATCHES_OFF64_T check X-Git-Tag: glibc-2.33~542 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fda4d81801e9d972c029fb4ed1162b960eb540b5;p=thirdparty%2Fglibc.git 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 --- diff --git a/io/lockf.c b/io/lockf.c index aa5c673c8d2..8ea83e15f07 100644 --- a/io/lockf.c +++ b/io/lockf.c @@ -15,6 +15,8 @@ License along with the GNU C Library; if not, see . */ +#include + #ifndef __OFF_T_MATCHES_OFF64_T #include