From f1abe50241d77d28eab5755f21139af53659eee4 Mon Sep 17 00:00:00 2001 From: Michael Hampton Date: Sun, 8 Jul 2007 15:54:04 +0000 Subject: [PATCH] Include sys/stat.h when available (FreeBSD) --- citadel/configure.ac | 2 +- citadel/user_ops.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/citadel/configure.ac b/citadel/configure.ac index aff40386d..f0e0c7498 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -584,7 +584,7 @@ dnl dnl TODO: for the DB header checks, we should check whether the headers dnl define db_env_create, somehow dnl -AC_CHECK_HEADERS(curses.h dl.h fcntl.h limits.h malloc.h termios.h sys/ioctl.h sys/select.h sys/time.h sys/prctl.h syslog.h unistd.h utmp.h utmpx.h paths.h db.h db4/db.h pthread.h netinet/in.h arpa/nameser.h arpa/nameser_compat.h) +AC_CHECK_HEADERS(curses.h dl.h fcntl.h limits.h malloc.h termios.h sys/ioctl.h sys/select.h sys/stat.h sys/time.h sys/prctl.h syslog.h unistd.h utmp.h utmpx.h paths.h db.h db4/db.h pthread.h netinet/in.h arpa/nameser.h arpa/nameser_compat.h) dnl dnl need to check if this is actually compilable, sometimes there are diff --git a/citadel/user_ops.c b/citadel/user_ops.c index 965156bd5..779c41850 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -16,7 +16,9 @@ #include #include #include +#ifdef HAVE_SYS_STAT_H #include +#endif #if TIME_WITH_SYS_TIME # include -- 2.30.2