From 0db338bdb0e9a0216681b6db7286ffb0f1711db1 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Tue, 20 Sep 2011 01:18:45 +0200 Subject: [PATCH] gunixmounts: Fix compilation on BSD 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 931bbb9e9..c0af1dc87 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -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