From: Przemyslaw Pawelczyk Date: Mon, 28 Nov 2016 13:59:19 +0000 (+0100) Subject: examples/passthrough_ll.c: Include (for PATH_MAX macro). X-Git-Tag: fuse-3.0.0rc3~4 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cac5660f2b5cb551c9c4282b55df0d8376deec47;p=qemu-gpiodev%2Flibfuse.git examples/passthrough_ll.c: Include (for PATH_MAX macro). Otherwise building w/o optimization (-O0) fails. passthrough_ll.c: In function 'lo_readlink': passthrough_ll.c:251:11: error: 'PATH_MAX' undeclared (first use in this function) char buf[PATH_MAX + 1]; (gcc v5.3.0 in Alpine Linux v3.4.6 x86_64 w/ musl-libc v1.1.14.) --- diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index 32e4ff6..b40cf76 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include