tst-invalidfd.c doesn't include header for sync_file_range
pjfordham opened this issue · 0 comments
pjfordham commented
tst-invalidfd.c doesn't include header for sync_file_range
Found as part of this effort:
https://fedoraproject.org/wiki/Toolchain/PortingToModernC
recommend adding this before main in that test.
#ifdef HAVE_SYNC_FILE_RANGE
#define _GNU_SOURCE
#include <fcntl.h>
#endif