gfile: Ensure loff_t is defined on FreeBSD
When copy_file_range()
support was added, I used the definition of
copy_file_range()
from Linux, which uses loff_t
to abstract the
different off*_t
types.
loff_t
doesn’t exist on FreeBSD, so this doesn’t compile, and was
caught in subsequent asynchronous CI.
Define loff_t
with a fallback value if it’s not defined, which should
fix this and other uses of loff_t
in gfile.c
(for example, if
FreeBSD ever starts declaring splice()
).
Fixes this CI failure: https://gitlab.gnome.org/GNOME/glib/-/jobs/2812302
Signed-off-by: Philip Withnall pwithnall@endlessos.org