The ac_check_func fails because -lfuse is not in LIBS. This also enables
code that wasn't being compiled, and fixes compiler errors that
resulted.
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
[Define if you have fuse])
HAVE_LIBFUSE=1
# look for fuse_getgroups and define FUSE_GETGROUPS if found
+ LIBS_saved="$LIBS"
+ LIBS="$LIBS -lfuse"
AC_CHECK_FUNCS([fuse_getgroups])
+ LIBS="$LIBS_saved"
],
[AC_MSG_FAILURE(
[no FUSE found (use --without-fuse to disable)])])])
#define FUSE_USE_VERSION 26
+#include <fuse/fuse.h>
#include <fuse/fuse_lowlevel.h>
#include <signal.h>
#include <stdio.h>
return 0;
}
- *sgids = malloc(c*sizeof(**sgids));
+ *sgids = (gid_t*)malloc(c*sizeof(**sgids));
if (!*sgids) {
return -ENOMEM;
}