diff --git a/configure.ac b/configure.ac index 85b253f..c7e705a 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,9 @@ AC_PROG_INSTALL LT_INIT AM_PROG_CC_C_O +# Checks for header files. +AC_CHECK_HEADERS([arpa/inet.h fcntl.h gcrypt.h limits.h netdb.h readline/readline.h stddef.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h utime.h iconv.h]) + # Checks for libraries. AC_CHECK_LIB([ncurses], [initscr], [], [ AC_MSG_ERROR([ncurses is required but not found.]) @@ -27,9 +30,6 @@ AC_CHECK_LIB([pthread], [pthread_create], [], [ AC_SUBST([CYCLE_OBJ]) -# Checks for header files. -AC_CHECK_HEADERS([arpa/inet.h fcntl.h gcrypt.h limits.h netdb.h readline/readline.h stddef.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h utime.h iconv.h]) - # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_UID_T diff --git a/fuse/commands.c b/fuse/commands.c index 1634847..aaed1e7 100644 --- a/fuse/commands.c +++ b/fuse/commands.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "afp.h" #include "dsi.h" diff --git a/fuse/daemon.c b/fuse/daemon.c index ba90dad..d02cf43 100644 --- a/fuse/daemon.c +++ b/fuse/daemon.c @@ -23,6 +23,8 @@ #include #include +#define FUSE_USE_VERSION 29 + #include #include "afp.h" diff --git a/lib/status.c b/lib/status.c index 22e40ee..6e99ac3 100644 --- a/lib/status.c +++ b/lib/status.c @@ -1,5 +1,6 @@ #include #include +#include #include "map_def.h" #include "dsi.h" #include "afp.h"