projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11217ed
)
gunixmounts: Fix compilation on BSD
author
Antoine Jacoutot
<ajacoutot@openbsd.org>
Mon, 19 Sep 2011 23:18:45 +0000
(
01:18
+0200)
committer
Antoine 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
patch
|
blob
|
history
diff --git
a/gio/gunixmounts.c
b/gio/gunixmounts.c
index
931bbb9
..
c0af1dc
100644
(file)
--- 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