diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2023-05-15 16:48:32 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2023-05-15 16:48:32 +0000 |
commit | 03aa8513f8591892fd5cc09b4fa068ba1bfc2667 (patch) | |
tree | f04a4fe443c63f2122a9daa95aa4aeb45dfd753f /gio/gfile.c | |
parent | fde068300efe442822fbbd56dc8ecc1caf4b83a7 (diff) | |
parent | e02fa2ec9072132e13afab4441366d3580b5e6f9 (diff) | |
download | glib-03aa8513f8591892fd5cc09b4fa068ba1bfc2667.tar.gz |
Merge branch 'wip/pwithnall/bsd-copy-file-range' into 'main'
gfile: Ensure loff_t is defined on FreeBSD
See merge request GNOME/glib!3431
Diffstat (limited to 'gio/gfile.c')
-rw-r--r-- | gio/gfile.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gio/gfile.c b/gio/gfile.c index 31da0b05e..a78737773 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -77,6 +77,13 @@ #include "gioerror.h" #include "glibintl.h" +/* Linux defines loff_t as a way to simplify the offset types for calls like + * splice() and copy_file_range(). BSD has copy_file_range() but doesn’t define + * loff_t. Abstract that. */ +#ifndef HAVE_LOFF_T +typedef off_t loff_t; +#endif + /** * SECTION:gfile |