diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2020-08-25 11:15:27 -0700 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2020-08-27 08:17:13 -0700 |
commit | fda4d81801e9d972c029fb4ed1162b960eb540b5 (patch) | |
tree | d70365976876d116784c094766eee3c55e63150c /io/lockf.c | |
parent | 9bd8e3f99d00fc578b8db0a9d61e59e84bbb6b0a (diff) | |
download | glibc-fda4d81801e9d972c029fb4ed1162b960eb540b5.zip glibc-fda4d81801e9d972c029fb4ed1162b960eb540b5.tar.gz glibc-fda4d81801e9d972c029fb4ed1162b960eb540b5.tar.bz2 |
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>
Diffstat (limited to 'io/lockf.c')
-rw-r--r-- | io/lockf.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -15,6 +15,8 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ +#include <bits/types.h> + #ifndef __OFF_T_MATCHES_OFF64_T #include <unistd.h> |