From fd393c53d816653e525950b742d49b02d599260b Mon Sep 17 00:00:00 2001 From: Mehdi Sabwat Date: Tue, 6 Jul 2021 16:08:49 +0200 Subject: fcstat: add support for wasm-emscripten fallback to f_type statfs struct field, since f_fstypename is not supported on the platform. --- src/fcstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fcstat.c b/src/fcstat.c index 5a2bd7c..4f69eae 100644 --- a/src/fcstat.c +++ b/src/fcstat.c @@ -386,7 +386,7 @@ FcFStatFs (int fd, FcStatFS *statb) # endif # if defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) p = buf.f_fstypename; -# elif defined(__linux__) +# elif defined(__linux__) || defined (__EMSCRIPTEN__) switch (buf.f_type) { case 0x6969: /* nfs */ -- cgit v1.2.1