dovecot-2.0-sslstream: OS X: Fixed compiler warning about missin...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:56:39 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/940212bda6ea
changeset: 10384:940212bda6ea
user: Timo Sirainen <tss at iki.fi>
date: Fri Nov 20 15:27:07 2009 -0500
description:
OS X: Fixed compiler warning about missing fdatasync() prototypes.
diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
src/lib/compat.h | 9 ++++++++-
diffs (16 lines):
diff -r 5ed426229f20 -r 940212bda6ea src/lib/compat.h
--- a/src/lib/compat.h Fri Nov 20 13:52:35 2009 -0500
+++ b/src/lib/compat.h Fri Nov 20 15:27:07 2009 -0500
@@ -259,4 +259,11 @@ char *my_strptime(const char *s, const c
#define EDESTDIREXISTS(errno) \
((errno) == EEXIST || (errno) == ENOTEMPTY || (errno) == EBUSY)
-#endif
+#if !defined(_POSIX_SYNCHRONIZED_IO) && \
+ defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \
+ (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060)
+/* OS X Snow Leopard has fdatasync(), but no prototype for it. */
+int fdatasync(int);
+#endif
+
+#endif
More information about the dovecot-cvs
mailing list