fcstat: add support for wasm-emscripten

fallback to f_type statfs struct field, since f_fstypename is not supported on the platform.
This commit is contained in:
Mehdi Sabwat 2021-07-06 16:08:49 +02:00
parent e291fda7d4
commit fd393c53d8
1 changed files with 1 additions and 1 deletions

View File

@ -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 */