Ubuntu – 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>: #include <stdio.h> #define _GNU_SOURCE /* For Linux's fallocate(). */ #define HAVE_FALLOCATE 1 #include <fcntl.h> int main(void) { printf("%dn", FALLOC_FL_KEEP_SIZE); } which I compiled with: gcc-13 -std=gnu2x…