gunixmounts: Fix compilation on BSD

Commit afa82ae805 introduced a compilation
regression on BSD systems that use the sysctl(3) interface; we need to
declare the buffer len in _g_get_unix_mount_points()
BZ #659528
This commit is contained in:
Antoine Jacoutot 2011-09-20 01:18:45 +02:00
parent 11217edaaf
commit 0db338bdb0

View File

@ -1023,6 +1023,7 @@ _g_get_unix_mount_points (void)
GList *return_list; GList *return_list;
#ifdef HAVE_SYS_SYSCTL_H #ifdef HAVE_SYS_SYSCTL_H
int usermnt = 0; int usermnt = 0;
size_t len = sizeof(usermnt);
struct stat sb; struct stat sb;
#endif #endif