mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
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
This commit is contained in:
parent
b1ba69ccee
commit
7166d26918
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user