error: FALLOC_FL_KEEP_SIZE undeclared (first use in this function) As per the man page, I have defined _GNU_SOURCE before the inclusion of <fcntl.h: