summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMehdi Sabwat <mehdisabwat@gmail.com>2021-07-06 16:08:49 +0200
committerMehdi Sabwat <mehdisabwat@gmail.com>2021-07-06 18:17:32 +0200
commitfd393c53d816653e525950b742d49b02d599260b (patch)
tree2950c0ca83664e80845264d5313b2e74d47279dc /src
parente291fda7d42e5d64379555097a066d9c2c4efce3 (diff)
downloadfontconfig-fd393c53d816653e525950b742d49b02d599260b.tar.gz
fcstat: add support for wasm-emscripten
fallback to f_type statfs struct field, since f_fstypename is not supported on the platform.
Diffstat (limited to 'src')
-rw-r--r--src/fcstat.c2
1 files changed, 1 insertions, 1 deletions
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 */