aboutsummaryrefslogtreecommitdiff
path: root/arch/um/kernel/skas/syscall.c
diff options
context:
space:
mode:
authorAlan Maguire <[email protected]>2020-03-17 17:35:34 +0000
committerRichard Weinberger <[email protected]>2020-03-29 23:21:42 +0200
commit35f3401317a3b26aa01fde8facfd320f2628fdcc (patch)
treee9e23fc8704b68481777f8b59b66fa18f994308a /arch/um/kernel/skas/syscall.c
parente355b2f55efc4633409ada14125c9e28ad2de012 (diff)
um: falloc.h needs to be directly included for older libc
When building UML with glibc 2.17 installed, compilation of arch/um/os-Linux/file.c fails due to failure to find FALLOC_FL_PUNCH_HOLE and FALLOC_FL_KEEP_SIZE definitions. It appears that /usr/include/bits/fcntl-linux.h (indirectly included by /usr/include/fcntl.h) does not include falloc.h with an older glibc, whereas a more up-to-date version does. Adding the direct include to file.c resolves the issue and does not cause problems for more recent glibc. Fixes: 50109b5a03b4 ("um: Add support for DISCARD in the UBD Driver") Cc: Brendan Higgins <[email protected]> Signed-off-by: Alan Maguire <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Acked-By: Anton Ivanov <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'arch/um/kernel/skas/syscall.c')
0 files changed, 0 insertions, 0 deletions