Mercurial > dovecot > core-2.2
changeset 16275:e33ec9eb166e
Fixed getmntinfo() usage with NetBSD.
Patch by Emmanuel Dreyfus
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 11 Apr 2013 13:13:14 +0300 |
parents | d44c04dc68b9 |
children | d594ce839da3 |
files | src/lib/mountpoint.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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--;