]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-fuse: make sure PATH_MAX is defined 18615/head
authorRoberto Oliveira <robertoguimaraes8@gmail.com>
Sun, 29 Oct 2017 14:05:48 +0000 (14:05 +0000)
committerRoberto Oliveira <robertoguimaraes8@gmail.com>
Mon, 30 Oct 2017 11:59:47 +0000 (11:59 +0000)
On systems without glibc, as Alpine Linux, you might lack definition of
PATH_MAX. This patch adds the limits.h header to solve this issue.

Signed-off-by: Roberto Oliveira <robertoguimaraes8@gmail.com>
src/rbd_fuse/rbd-fuse.cc

index 6295097ca7fce5a868943137b012886067960e9c..68a33e4bbccc0092985507a08ce4205027e58cde 100644 (file)
@@ -20,6 +20,7 @@
 #include <assert.h>
 #include <string>
 #include <mutex>
+#include <limits.h>
 
 #if defined(__FreeBSD__)
 #include <sys/param.h>