about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2020-08-25 11:15:27 -0700
committerAlistair Francis <alistair.francis@wdc.com>2020-08-27 08:17:13 -0700
commitfda4d81801e9d972c029fb4ed1162b960eb540b5 (patch)
treed70365976876d116784c094766eee3c55e63150c /io
parent9bd8e3f99d00fc578b8db0a9d61e59e84bbb6b0a (diff)
downloadglibc-fda4d81801e9d972c029fb4ed1162b960eb540b5.tar.gz
glibc-fda4d81801e9d972c029fb4ed1162b960eb540b5.tar.xz
glibc-fda4d81801e9d972c029fb4ed1162b960eb540b5.zip
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')
-rw-r--r--io/lockf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io/lockf.c b/io/lockf.c
index aa5c673c8d..8ea83e15f0 100644
--- a/io/lockf.c
+++ b/io/lockf.c
@@ -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>