[glib/glib-2-30] gunixmounts: Fix compilation on BSD
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-30] gunixmounts: Fix compilation on BSD
- Date: Wed, 21 Sep 2011 15:03:22 +0000 (UTC)
commit 7166d269181d44ab2125e10ef4d5a41043951d05
Author: Antoine Jacoutot <ajacoutot openbsd org>
Date: Tue Sep 20 01:18:45 2011 +0200
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
index 931bbb9..c0af1dc 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]