Skip to content

Commit

Permalink
Fix missing declaration for g_fdwalk_set_cloexec() with GLib 2.80.x
Browse files Browse the repository at this point in the history
With older GLib, it's provided by libglnx, but with newer GLib, we need
to include the correct header.

Fixes: 7b1cd20 "Replace flatpak_close_fds_workaround() with g_fdwalk_set_cloexec()"
Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Mar 20, 2024
1 parent ef2c66b commit d15c054
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/flatpak-bwrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include <glib/gi18n-lib.h>

#include <glib-unix.h>
#include <gio/gio.h>
#include "libglnx.h"

Expand Down
1 change: 1 addition & 0 deletions portal/flatpak-portal.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <sys/types.h>
#include <sys/socket.h>

#include <glib-unix.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.h>
#include <gio/gunixfdlist.h>
Expand Down
2 changes: 2 additions & 0 deletions system-helper/flatpak-system-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include <fcntl.h>
#include <unistd.h>

#include <glib-unix.h>

#include "flatpak-dbus-generated.h"
#include "flatpak-dir-private.h"
#include "flatpak-error.h"
Expand Down

0 comments on commit d15c054

Please sign in to comment.