Include sys/stat.h when available (FreeBSD)
authorMichael Hampton <io_error@uncensored.citadel.org>
Sun, 8 Jul 2007 15:54:04 +0000 (15:54 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sun, 8 Jul 2007 15:54:04 +0000 (15:54 +0000)
citadel/configure.ac
citadel/user_ops.c

index aff40386de8a1d9a66d750d93089c5baff5a104a..f0e0c74982f80a0f90300a4139b0efb6b657a7ce 100644 (file)
@@ -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
index 965156bd575de513b7eb54bda58b812968bf405a..779c41850e058acef5fc975045988b3718245617 100644 (file)
@@ -16,7 +16,9 @@
 #include <ctype.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
+#endif
 
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>