projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
237c5c1
)
examples/passthrough_ll.c: Include <limits.h> (for PATH_MAX macro).
author
Przemyslaw Pawelczyk
<przemoc@gmail.com>
Mon, 28 Nov 2016 13:59:19 +0000
(14:59 +0100)
committer
Nikolaus Rath
<Nikolaus@rath.org>
Tue, 29 Nov 2016 05:35:05 +0000
(21:35 -0800)
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.)
example/passthrough_ll.c
patch
|
blob
|
history
diff --git
a/example/passthrough_ll.c
b/example/passthrough_ll.c
index 32e4ff6477e343c96777f1776c3053354b850cfa..b40cf76a43f256e77d168566dd91eb11c323a8dc 100644
(file)
--- 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>