gunixmounts: Fix compilation on BSD
authorAntoine Jacoutot <ajacoutot@openbsd.org>
Mon, 19 Sep 2011 23:18:45 +0000 (01:18 +0200)
committerAntoine Jacoutot <ajacoutot@openbsd.org>
Tue, 20 Sep 2011 14:58:00 +0000 (16:58 +0200)
Commit afa82ae805f9c8bb875a3f863a7b4669953f159f 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

gio/gunixmounts.c

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