dovecot-2.2: Fixed getmntinfo() usage with NetBSD.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 11 13:13:23 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/e33ec9eb166e
changeset: 16275:e33ec9eb166e
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 11 13:13:14 2013 +0300
description:
Fixed getmntinfo() usage with NetBSD.
Patch by Emmanuel Dreyfus
diffstat:
src/lib/mountpoint.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r d44c04dc68b9 -r e33ec9eb166e src/lib/mountpoint.c
--- a/src/lib/mountpoint.c Wed Apr 10 22:31:53 2013 +0300
+++ b/src/lib/mountpoint.c Thu Apr 11 13:13:14 2013 +0300
@@ -137,7 +137,11 @@
#elif defined(MOUNTPOINT_SOLARIS) || defined(MOUNTPOINT_LINUX)
FILE *f;
#elif defined(HAVE_GETMNTINFO) /* BSDs */
+#ifndef __NetBSD__
struct statfs *fs;
+#else
+ struct statvfs *fs;
+#endif
int count;
#endif
struct mountpoint mnt;
@@ -287,7 +291,11 @@
return NULL;
#elif defined(HAVE_GETMNTINFO) /* BSDs */
while (iter->count > 0) {
+#ifndef __NetBSD__
struct statfs *fs = iter->fs;
+#else
+ struct statvfs *fs = iter->fs;
+#endif
iter->fs++;
iter->count--;
More information about the dovecot-cvs
mailing list