Fix missing declaration for g_fdwalk_set_cloexec() with GLib 2.80.x

With older GLib, it's provided by libglnx, but with newer GLib, we need
to include the correct header.

Fixes: 7b1cd206 "Replace flatpak_close_fds_workaround() with g_fdwalk_set_cloexec()"
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2024-03-20 19:04:32 +00:00
parent 9532c8d333
commit 2fc71b1f80
3 changed files with 4 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
#include <glib/gi18n-lib.h>
#include <glib-unix.h>
#include <gio/gio.h>
#include "libglnx.h"

View File

@@ -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>

View File

@@ -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"