From: Bernd Schubert Date: Tue, 5 Mar 2024 22:39:44 +0000 (+0100) Subject: Fix undefined loff_t in test_write_cache.c on alpine X-Git-Tag: fuse-3.17.1-rc0~146 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a6ac2ec12df545526b7cf92feb771e0a2bb1bbf3;p=qemu-gpiodev%2Flibfuse.git Fix undefined loff_t in test_write_cache.c on alpine This fixes #899. Seems that Alpine (and maybe Fedora) need _GNU_SOURCE to get loff_t. --- diff --git a/test/test_write_cache.c b/test/test_write_cache.c index 92471f1..6b12a9d 100644 --- a/test/test_write_cache.c +++ b/test/test_write_cache.c @@ -9,6 +9,8 @@ #define FUSE_USE_VERSION 30 +#define _GNU_SOURCE /* for loff_t */ + #include #include #include