aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCismonX <admin@cismon.net>2024-06-21 04:40:51 +0800
committerBernd Schubert <bernd.schubert@fastmail.fm>2024-06-25 07:16:49 +0200
commit09e6583b54b7cd126869d41908e28cd0e8f44e45 (patch)
tree056b46209fe9e544ed1587763da9ab572cbd37b0
parent285465fbdb5a185eeb6bd7dc077356056c61e39f (diff)
downloadlibfuse-09e6583b54b7cd126869d41908e28cd0e8f44e45.tar.gz
Use off_t instead of loff_t
Since we're already enforcing 64-bit off_t, using loff_t makes no difference. Also loff_t is Linux-only, which breaks compatibility for *BSD.
-rw-r--r--test/test_write_cache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_write_cache.c b/test/test_write_cache.c
index 6b12a9d..cc827c7 100644
--- a/test/test_write_cache.c
+++ b/test/test_write_cache.c
@@ -9,8 +9,6 @@
#define FUSE_USE_VERSION 30
-#define _GNU_SOURCE /* for loff_t */
-
#include <fuse_config.h>
#include <fuse_lowlevel.h>
#include <stdio.h>
@@ -214,7 +212,7 @@ static void test_fs(char *mountpoint) {
const size_t dsize = options.data_size * WRITE_SYSCALLS;
int fd, rofd;
pthread_t rofd_thread;
- loff_t off = 0;
+ off_t off = 0;
buf = malloc(dsize);
assert(buf != NULL);