diff options
author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2016-11-28 14:59:19 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-11-28 21:35:05 -0800 |
commit | cac5660f2b5cb551c9c4282b55df0d8376deec47 (patch) | |
tree | ca746a11d476341086f6743ad4abe9c24f10fbbe /example | |
parent | 237c5c1cb5b19020d422cd8b6d36269b14f15cc5 (diff) |
examples/passthrough_ll.c: Include <limits.h> (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.)
Diffstat (limited to 'example')
-rw-r--r-- | example/passthrough_ll.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <stddef.h> #include <stdbool.h> #include <string.h> +#include <limits.h> #include <dirent.h> #include <assert.h> #include <errno.h> |