[dovecot-cvs] dovecot configure.in,1.329,1.330

tss at dovecot.org tss at dovecot.org
Thu Mar 22 00:00:50 EET 2007


Update of /var/lib/cvs/dovecot
In directory talvi:/tmp/cvs-serv23059

Modified Files:
	configure.in 
Log Message:
Check if struct stat has tv_nsec fields



Index: configure.in
===================================================================
RCS file: /var/lib/cvs/dovecot/configure.in,v
retrieving revision 1.329
retrieving revision 1.330
diff -u -d -r1.329 -r1.330
--- configure.in	18 Mar 2007 02:36:45 -0000	1.329
+++ configure.in	21 Mar 2007 22:00:46 -0000	1.330
@@ -1197,6 +1197,23 @@
   AC_MSG_RESULT(no)
 ])
 
+AC_MSG_CHECKING([if struct stat has tv_nsec fields])
+AC_TRY_COMPILE([
+  #include <sys/types.h>
+  #include <sys/stat.h>
+  #include <unistd.h>
+], [
+  struct stat st;
+  unsigned long x = st.st_mtim.tv_nsec;
+
+  return 0;
+], [
+  AC_DEFINE(HAVE_STAT_TV_NSEC,, Define if you have tv_nsec fields in struct stat)
+  AC_MSG_RESULT(yes)
+], [
+  AC_MSG_RESULT(no)
+])
+
 dnl * Check if statvfs() can be used to find out block device for files
 AC_MSG_CHECKING([if statvfs.f_mntfromname exists])
 AC_TRY_COMPILE([



More information about the dovecot-cvs mailing list