[dovecot-cvs] dovecot/src/lib compat.h,1.6,1.7

cras at procontrol.fi cras at procontrol.fi
Thu Oct 24 04:34:22 EEST 2002


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv28902/src/lib

Modified Files:
	compat.h 
Log Message:
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
fsync() entirely if fdatasync() doesn't exist.



Index: compat.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib/compat.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- compat.h	13 Oct 2002 23:49:11 -0000	1.6
+++ compat.h	24 Oct 2002 00:34:20 -0000	1.7
@@ -62,6 +62,10 @@
 int my_getpagesize(void);
 #endif
 
+#ifndef HAVE_FDATASYNC
+#  define fdatasync fsync
+#endif
+
 #ifndef HAVE_STRUCT_IOVEC
 struct iovec {
 	void *iov_base;




More information about the dovecot-cvs mailing list