Skip to content

Commit

Permalink
Enable building on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Jan 28, 2024
1 parent dd6b62d commit 92e202c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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.])
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions fuse/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <stdarg.h>
#include <getopt.h>
#include <signal.h>
#include <sys/socket.h>

#include "afp.h"
#include "dsi.h"
Expand Down
2 changes: 2 additions & 0 deletions fuse/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <signal.h>
#include <sys/socket.h>

#define FUSE_USE_VERSION 29

#include <fuse.h>

#include "afp.h"
Expand Down
1 change: 1 addition & 0 deletions lib/status.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <string.h>
#include <stdio.h>
#include <sys/socket.h>
#include "map_def.h"
#include "dsi.h"
#include "afp.h"
Expand Down

0 comments on commit 92e202c

Please sign in to comment.